Add ReturnTypeWillChange to methods that need it for PHP 8.1

This commit is contained in:
Phil Davis 2022-10-09 12:02:42 +05:45
parent 8476feb2db
commit c09dfad3ef
No known key found for this signature in database
GPG key ID: 129103924A5A9744

View file

@ -60,6 +60,7 @@ abstract class ChainLink implements \Flake\Core\Datastructure\Chainable {
$this->__container->offsetUnset($offset);
}
#[\ReturnTypeWillChange]
function &offsetGet($offset) {
if (is_null($this->__container)) {
return null;
@ -74,10 +75,12 @@ abstract class ChainLink implements \Flake\Core\Datastructure\Chainable {
$this->__container->rewind();
}
#[\ReturnTypeWillChange]
function current() {
return $this->__container->current();
}
#[\ReturnTypeWillChange]
function key() {
return $this->__container->key();
}