Revert "N°4517 - PHP 8.1: Fix return type hint for iterable classes"

This reverts commit 61be903eb2.
This commit is contained in:
Molkobain
2023-01-16 14:38:20 +01:00
parent 61be903eb2
commit 4c127b6f61
4 changed files with 14 additions and 14 deletions

View File

@@ -745,27 +745,27 @@ class RelationTypeIterator implements Iterator
}
}
public function rewind(): void
public function rewind()
{
$this->iCurrentIdx = 0;
}
public function valid(): bool
public function valid()
{
return array_key_exists($this->iCurrentIdx, $this->aList);
}
public function next(): void
public function next()
{
$this->iCurrentIdx++;
}
public function current(): mixed
public function current()
{
return $this->aList[$this->iCurrentIdx];
}
public function key(): mixed
public function key()
{
return $this->iCurrentIdx;
}