From 50389ebefd211ef784db744c8a2d6473325286bb Mon Sep 17 00:00:00 2001 From: Aaron Piotrowski Date: Sun, 24 Oct 2021 22:25:21 -0500 Subject: [PATCH] Change Result to extend only Traversable --- composer.json | 3 +-- src/Result.php | 12 +----------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/composer.json b/composer.json index 75bd0da..a6de1fc 100644 --- a/composer.json +++ b/composer.json @@ -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", diff --git a/src/Result.php b/src/Result.php index 9453aad..362d08b 100644 --- a/src/Result.php +++ b/src/Result.php @@ -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|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.