|
@@ -18,8 +18,9 @@ |
|
18
|
18
|
{ |
|
19
|
19
|
parent::__construct($iterator); |
|
20
|
20
|
$this->callback = $callback; |
|
21
|
21
|
} |
|
22
|
+ #[\ReturnTypeWillChange] |
|
22
|
23
|
public function current() |
|
23
|
24
|
{ |
|
24
|
25
|
return ($this->callback)(parent::current(), parent::key()); |
|
25
|
26
|
} |