valid usage
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user