| @@ -68,9 +68,8 @@ | ||
| 68 | 68 | * @param string $id The unique identifier for the parameter or object |
| 69 | 69 | * @param mixed $value The value of the parameter or a closure to define an object |
| 70 | 70 | * @throws \RuntimeException Prevent override of a frozen service |
| 71 | 71 | */ |
| 72 | - #[\ReturnTypeWillChange] | |
| 73 | 72 | public function offsetSet( $id, $value ) { |
| 74 | 73 | if ( isset( $this->frozen[ $id ] ) ) { |
| 75 | 74 | throw new \RuntimeException( sprintf( 'Cannot override frozen service "%s".', $id ) ); |
| 76 | 75 | } |
| @@ -87,9 +86,8 @@ | ||
| 87 | 86 | * @return mixed The value of the parameter or an object |
| 88 | 87 | * |
| 89 | 88 | * @throws \InvalidArgumentException if the identifier is not defined |
| 90 | 89 | */ |
| 91 | - #[\ReturnTypeWillChange] | |
| 92 | 90 | public function offsetGet( $id ) { |
| 93 | 91 | if ( ! isset( $this->keys[ $id ] ) ) { |
| 94 | 92 | throw new \InvalidArgumentException( sprintf( 'Identifier "%s" is not defined.', $id ) ); |
| 95 | 93 | } |
| @@ -122,9 +120,8 @@ | ||
| 122 | 120 | * @param string $id The unique identifier for the parameter or object |
| 123 | 121 | * |
| 124 | 122 | * @return bool |
| 125 | 123 | */ |
| 126 | - #[\ReturnTypeWillChange] | |
| 127 | 124 | public function offsetExists( $id ) { |
| 128 | 125 | return isset( $this->keys[ $id ] ); |
| 129 | 126 | } |
| 130 | 127 | |
| @@ -132,9 +129,8 @@ | ||
| 132 | 129 | * Unsets a parameter or an object. |
| 133 | 130 | * |
| 134 | 131 | * @param string $id The unique identifier for the parameter or object |
| 135 | 132 | */ |
| 136 | - #[\ReturnTypeWillChange] | |
| 137 | 133 | public function offsetUnset( $id ) { |
| 138 | 134 | if ( isset( $this->keys[ $id ] ) ) { |
| 139 | 135 | if ( is_object( $this->values[ $id ] ) ) { |
| 140 | 136 | unset( $this->factories[ $this->values[ $id ] ], $this->protected[ $this->values[ $id ] ] ); |