Change Result to extend only Traversable

This commit is contained in:
Aaron Piotrowski 2021-10-24 22:25:21 -05:00
parent 4f5f3e6d92
commit 50389ebefd
No known key found for this signature in database
GPG Key ID: ADD1EF783EDE9EEB
2 changed files with 2 additions and 13 deletions

View File

@ -12,8 +12,7 @@
"license": "MIT",
"require": {
"php": ">=8",
"amphp/amp": "^3-dev",
"amphp/pipeline": "dev-master"
"amphp/amp": "^3-dev"
},
"require-dev": {
"amphp/php-cs-fixer-config": "dev-master",

View File

@ -2,18 +2,8 @@
namespace Amp\Sql;
use Amp\Pipeline\Pipeline;
interface Result extends Pipeline
interface Result extends \Traversable
{
/**
* Promise returned resolves with a map (associative array) of column-names to column-values for each row in the
* result set. The promise resolves with null when no more rows remain.
*
* @return array<string, mixed>|null
*/
public function continue(): ?array;
/**
* Resolves with a new instance of Result if another result is available after this result. Resolves with null if
* no further results are available.