Skip to content

Commit 1c6f935

Browse files
authored
Merge pull request #170 from m1khal3v/bugfix/current-deprecated
Return type of ClickHouseDB\Statement::current() should either be compatible with Iterator::current()
2 parents 99484e8 + 4ff80f1 commit 1c6f935

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Statement.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,10 @@ public function rewind(): void {
578578
$this->iterator = 0;
579579
}
580580

581+
/**
582+
* @return mixed
583+
*/
584+
#[\ReturnTypeWillChange]
581585
public function current() {
582586
if (!isset($this->array_data[$this->iterator])) {
583587
return null;

0 commit comments

Comments
 (0)