@@ -924,6 +924,7 @@ public function resolve(array $options = [])
924
924
* @throws OptionDefinitionException If there is a cyclic dependency between
925
925
* lazy options and/or normalizers
926
926
*/
927
+ #[\ReturnTypeWillChange]
927
928
public function offsetGet (mixed $ option , bool $ triggerDeprecation = true )
928
929
{
929
930
if (!$ this ->locked ) {
@@ -1179,6 +1180,7 @@ private function verifyTypes(string $type, mixed $value, array &$invalidTypes, i
1179
1180
*
1180
1181
* @see \ArrayAccess::offsetExists()
1181
1182
*/
1183
+ #[\ReturnTypeWillChange]
1182
1184
public function offsetExists (mixed $ option )
1183
1185
{
1184
1186
if (!$ this ->locked ) {
@@ -1195,6 +1197,7 @@ public function offsetExists(mixed $option)
1195
1197
*
1196
1198
* @throws AccessException
1197
1199
*/
1200
+ #[\ReturnTypeWillChange]
1198
1201
public function offsetSet (mixed $ option , mixed $ value )
1199
1202
{
1200
1203
throw new AccessException ('Setting options via array access is not supported. Use setDefault() instead. ' );
@@ -1207,6 +1210,7 @@ public function offsetSet(mixed $option, mixed $value)
1207
1210
*
1208
1211
* @throws AccessException
1209
1212
*/
1213
+ #[\ReturnTypeWillChange]
1210
1214
public function offsetUnset (mixed $ option )
1211
1215
{
1212
1216
throw new AccessException ('Removing options via array access is not supported. Use remove() instead. ' );
@@ -1223,6 +1227,7 @@ public function offsetUnset(mixed $option)
1223
1227
*
1224
1228
* @see \Countable::count()
1225
1229
*/
1230
+ #[\ReturnTypeWillChange]
1226
1231
public function count ()
1227
1232
{
1228
1233
if (!$ this ->locked ) {
0 commit comments