From 99931fda429ecf917e1fc63bc4f6ac3172642ddf Mon Sep 17 00:00:00 2001 From: m1khal3v Date: Wed, 22 Jun 2022 01:23:56 +0300 Subject: [PATCH 1/2] bugfix/current-deprecated Return type of ClickHouseDB\Statement::current() should either be compatible with Iterator::current() --- src/Statement.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Statement.php b/src/Statement.php index 1578d70..79a9dfc 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -578,6 +578,9 @@ public function rewind(): void { $this->iterator = 0; } + /** + * @return mixed + */ public function current() { if (!isset($this->array_data[$this->iterator])) { return null; From 4ff80f177f010504ca77f73dcbe610a720f2b2fd Mon Sep 17 00:00:00 2001 From: m1khal3v Date: Wed, 22 Jun 2022 01:27:43 +0300 Subject: [PATCH 2/2] bugfix/current-deprecated Return type of ClickHouseDB\Statement::current() should either be compatible with Iterator::current() --- src/Statement.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Statement.php b/src/Statement.php index 79a9dfc..bf3e753 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -581,6 +581,7 @@ public function rewind(): void { /** * @return mixed */ + #[\ReturnTypeWillChange] public function current() { if (!isset($this->array_data[$this->iterator])) { return null;