diff --git a/src/tad/DI52/Container.php b/src/tad/DI52/Container.php index 16cb7f1e..1663b9b4 100644 --- a/src/tad/DI52/Container.php +++ b/src/tad/DI52/Container.php @@ -160,6 +160,7 @@ public function setVar($key, $value) { * @return void * @since 5.0.0 */ + #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { if ($value instanceof tad_DI52_ProtectedValue) { $this->protected[$offset] = true; @@ -215,6 +216,7 @@ public function getVar($key) { * * @return mixed */ + #[\ReturnTypeWillChange] public function offsetGet($offset) { if (is_object($offset)) { return is_callable($offset) ? call_user_func($offset, $this) : $offset; @@ -546,6 +548,7 @@ public function isBound($classOrInterface) { * The return value will be casted to boolean if non-boolean was returned. * @since 5.0.0 */ + #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->bindings[$offset]); } @@ -600,6 +603,7 @@ public function bindDecorators($classOrInterface, array $decorators, array $afte * @return void * @since 5.0.0 */ + #[\ReturnTypeWillChange] public function offsetUnset($offset) { unset( $this->strings[$offset],