Skip to content

Commit

Permalink
Merge pull request #170 from m1khal3v/bugfix/current-deprecated
Browse files Browse the repository at this point in the history
Return type of ClickHouseDB\Statement::current() should either be compatible with Iterator::current()
  • Loading branch information
isublimity authored Jun 22, 2022
2 parents 99484e8 + 4ff80f1 commit 1c6f935
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,10 @@ public function rewind(): void {
$this->iterator = 0;
}

/**
* @return mixed
*/
#[\ReturnTypeWillChange]
public function current() {
if (!isset($this->array_data[$this->iterator])) {
return null;
Expand Down

0 comments on commit 1c6f935

Please sign in to comment.