valid usage

This commit is contained in:
Yuri Kuznetsov
2025-11-06 19:37:12 +02:00
parent 748392ab7f
commit d036df059e
2 changed files with 8 additions and 0 deletions
@@ -94,6 +94,10 @@ class ArgumentList implements Evaluatable, Iterator, Countable, ArrayAccess, See
#[\ReturnTypeWillChange]
public function current()
{
if (!$this->valid()) {
return null;
}
return $this->getArgumentByIndex($this->position);
}
@@ -94,6 +94,10 @@ class EvaluatedArgumentList implements Iterator, Countable, ArrayAccess, Seekabl
#[\ReturnTypeWillChange]
public function current()
{
if (!$this->valid()) {
return null;
}
return $this->getArgumentByIndex($this->position);
}