@@ -832,6 +832,7 @@ public function resolve(array $options = [])
832
832
* @throws OptionDefinitionException If there is a cyclic dependency between
833
833
* lazy options and/or normalizers
834
834
*/
835
+ #[\ReturnTypeWillChange]
835
836
public function offsetGet ($ option/*, bool $triggerDeprecation = true*/ )
836
837
{
837
838
if (!$ this ->locked ) {
@@ -1072,6 +1073,7 @@ private function verifyTypes(string $type, $value, array &$invalidTypes, int $le
1072
1073
*
1073
1074
* @see \ArrayAccess::offsetExists()
1074
1075
*/
1076
+ #[\ReturnTypeWillChange]
1075
1077
public function offsetExists ($ option )
1076
1078
{
1077
1079
if (!$ this ->locked ) {
@@ -1088,6 +1090,7 @@ public function offsetExists($option)
1088
1090
*
1089
1091
* @throws AccessException
1090
1092
*/
1093
+ #[\ReturnTypeWillChange]
1091
1094
public function offsetSet ($ option , $ value )
1092
1095
{
1093
1096
throw new AccessException ('Setting options via array access is not supported. Use setDefault() instead. ' );
@@ -1100,6 +1103,7 @@ public function offsetSet($option, $value)
1100
1103
*
1101
1104
* @throws AccessException
1102
1105
*/
1106
+ #[\ReturnTypeWillChange]
1103
1107
public function offsetUnset ($ option )
1104
1108
{
1105
1109
throw new AccessException ('Removing options via array access is not supported. Use remove() instead. ' );
@@ -1116,6 +1120,7 @@ public function offsetUnset($option)
1116
1120
*
1117
1121
* @see \Countable::count()
1118
1122
*/
1123
+ #[\ReturnTypeWillChange]
1119
1124
public function count ()
1120
1125
{
1121
1126
if (!$ this ->locked ) {
0 commit comments