From 9b667bafdfe6028e89ca0c1101354a7c3da8e032 Mon Sep 17 00:00:00 2001 From: prolic Date: Sat, 15 Sep 2018 21:38:56 +0800 Subject: [PATCH] fix PooledResultSet --- src/PooledResultSet.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PooledResultSet.php b/src/PooledResultSet.php index 671e00b..65b574a 100644 --- a/src/PooledResultSet.php +++ b/src/PooledResultSet.php @@ -23,13 +23,13 @@ class PooledResultSet implements ResultSet ($this->release)(); } - public function advance(int $type = self::FETCH_ASSOC): Promise + public function advance(): Promise { - return $this->result->advance($type); + return $this->result->advance(); } - public function getCurrent() + public function getCurrent(int $type = self::FETCH_ASSOC) { - return $this->result->getCurrent(); + return $this->result->getCurrent($type); } }