Skip to content

Commit 99931fd

Browse files
author
m1khal3v
committed
bugfix/current-deprecated Return type of ClickHouseDB\Statement::current() should either be compatible with Iterator::current()
1 parent 99484e8 commit 99931fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Statement.php

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

581+
/**
582+
* @return mixed
583+
*/
581584
public function current() {
582585
if (!isset($this->array_data[$this->iterator])) {
583586
return null;

0 commit comments

Comments
 (0)