callback = $callback; } #[\ReturnTypeWillChange] public function current() { return ($this->callback)(parent::current(), parent::key()); } }