PHP 8 Compatibility

This commit is contained in:
Frédéric Guillot
2022-02-05 11:49:03 -08:00
committed by GitHub
parent 61e63ef9e0
commit f5bb55bdb8
558 changed files with 6262 additions and 21691 deletions

View File

@@ -27,6 +27,7 @@ class EventIteratorBuilder implements Iterator {
return $this;
}
#[\ReturnTypeWillChange]
public function rewind() {
$this->position = 0;
}
@@ -34,18 +35,22 @@ class EventIteratorBuilder implements Iterator {
/**
* @return BaseEventBuilder
*/
#[\ReturnTypeWillChange]
public function current() {
return $this->builders[$this->position];
}
#[\ReturnTypeWillChange]
public function key() {
return $this->position;
}
#[\ReturnTypeWillChange]
public function next() {
++$this->position;
}
#[\ReturnTypeWillChange]
public function valid() {
return isset($this->builders[$this->position]);
}