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

This commit is contained in:
Molkobain
2023-01-16 14:21:00 +01:00
parent a50ed02057
commit 61be903eb2
4 changed files with 14 additions and 14 deletions

View File

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