From 4ff80f177f010504ca77f73dcbe610a720f2b2fd Mon Sep 17 00:00:00 2001 From: m1khal3v Date: Wed, 22 Jun 2022 01:27:43 +0300 Subject: [PATCH] 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;