@ -33,16 +33,19 @@ class RuleSetIterator implements \Iterator
$this->rewind();
$this->rewind();
}
}
#[\ReturnTypeWillChange]
public function current()
public function current()
{
{
return $this->rules[$this->currentType][$this->currentOffset];
return $this->rules[$this->currentType][$this->currentOffset];
}
}
#[\ReturnTypeWillChange]
public function key()
public function key()
{
{
return $this->currentType;
return $this->currentType;
}
}
#[\ReturnTypeWillChange]
public function next()
public function next()
{
{
$this->currentOffset++;
$this->currentOffset++;
@ -67,6 +70,7 @@ class RuleSetIterator implements \Iterator
}
}
}
}
#[\ReturnTypeWillChange]
public function rewind()
public function rewind()
{
{
$this->currentOffset = 0;
$this->currentOffset = 0;
@ -86,6 +90,7 @@ class RuleSetIterator implements \Iterator
} while (isset($this->types[$this->currentTypeOffset]) & & !\count($this->rules[$this->currentType]));
} while (isset($this->types[$this->currentTypeOffset]) & & !\count($this->rules[$this->currentType]));
}
}
#[\ReturnTypeWillChange]
public function valid()
public function valid()
{
{
return isset($this->rules[$this->currentType], $this->rules[$this->currentType][$this->currentOffset]);
return isset($this->rules[$this->currentType], $this->rules[$this->currentType][$this->currentOffset]);