Add ReturnTypeWillChange to methods that need it for PHP 8.1
This commit is contained in:
parent
8476feb2db
commit
c09dfad3ef
1 changed files with 3 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue