@@ -942,6 +942,7 @@ public function resolve(array $options = [])
942
942
* @throws OptionDefinitionException If there is a cyclic dependency between
943
943
* lazy options and/or normalizers
944
944
*/
945
+ #[\ReturnTypeWillChange]
945
946
public function offsetGet ($ option , bool $ triggerDeprecation = true )
946
947
{
947
948
if (!$ this ->locked ) {
@@ -1199,6 +1200,7 @@ private function verifyTypes(string $type, $value, array &$invalidTypes, int $le
1199
1200
*
1200
1201
* @see \ArrayAccess::offsetExists()
1201
1202
*/
1203
+ #[\ReturnTypeWillChange]
1202
1204
public function offsetExists ($ option )
1203
1205
{
1204
1206
if (!$ this ->locked ) {
@@ -1215,6 +1217,7 @@ public function offsetExists($option)
1215
1217
*
1216
1218
* @throws AccessException
1217
1219
*/
1220
+ #[\ReturnTypeWillChange]
1218
1221
public function offsetSet ($ option , $ value )
1219
1222
{
1220
1223
throw new AccessException ('Setting options via array access is not supported. Use setDefault() instead. ' );
@@ -1227,6 +1230,7 @@ public function offsetSet($option, $value)
1227
1230
*
1228
1231
* @throws AccessException
1229
1232
*/
1233
+ #[\ReturnTypeWillChange]
1230
1234
public function offsetUnset ($ option )
1231
1235
{
1232
1236
throw new AccessException ('Removing options via array access is not supported. Use remove() instead. ' );
@@ -1243,6 +1247,7 @@ public function offsetUnset($option)
1243
1247
*
1244
1248
* @see \Countable::count()
1245
1249
*/
1250
+ #[\ReturnTypeWillChange]
1246
1251
public function count ()
1247
1252
{
1248
1253
if (!$ this ->locked ) {
0 commit comments