@@ -914,8 +914,6 @@ public function resolve(array $options = [])
914
914
*
915
915
* @param bool $triggerDeprecation Whether to trigger the deprecation or not (true by default)
916
916
*
917
- * @return mixed The option value
918
- *
919
917
* @throws AccessException If accessing this method outside of
920
918
* {@link resolve()}
921
919
* @throws NoSuchOptionException If the option is not set
@@ -924,8 +922,7 @@ public function resolve(array $options = [])
924
922
* @throws OptionDefinitionException If there is a cyclic dependency between
925
923
* lazy options and/or normalizers
926
924
*/
927
- #[\ReturnTypeWillChange]
928
- public function offsetGet (mixed $ option , bool $ triggerDeprecation = true )
925
+ public function offsetGet (mixed $ option , bool $ triggerDeprecation = true ): mixed
929
926
{
930
927
if (!$ this ->locked ) {
931
928
throw new AccessException ('Array access is only supported within closures of lazy options and normalizers. ' );
@@ -1174,14 +1171,11 @@ private function verifyTypes(string $type, mixed $value, array &$invalidTypes, i
1174
1171
/**
1175
1172
* Returns whether a resolved option with the given name exists.
1176
1173
*
1177
- * @return bool Whether the option is set
1178
- *
1179
1174
* @throws AccessException If accessing this method outside of {@link resolve()}
1180
1175
*
1181
1176
* @see \ArrayAccess::offsetExists()
1182
1177
*/
1183
- #[\ReturnTypeWillChange]
1184
- public function offsetExists (mixed $ option )
1178
+ public function offsetExists (mixed $ option ): bool
1185
1179
{
1186
1180
if (!$ this ->locked ) {
1187
1181
throw new AccessException ('Array access is only supported within closures of lazy options and normalizers. ' );
@@ -1193,25 +1187,19 @@ public function offsetExists(mixed $option)
1193
1187
/**
1194
1188
* Not supported.
1195
1189
*
1196
- * @return void
1197
- *
1198
1190
* @throws AccessException
1199
1191
*/
1200
- #[\ReturnTypeWillChange]
1201
- public function offsetSet (mixed $ option , mixed $ value )
1192
+ public function offsetSet (mixed $ option , mixed $ value ): void
1202
1193
{
1203
1194
throw new AccessException ('Setting options via array access is not supported. Use setDefault() instead. ' );
1204
1195
}
1205
1196
1206
1197
/**
1207
1198
* Not supported.
1208
1199
*
1209
- * @return void
1210
- *
1211
1200
* @throws AccessException
1212
1201
*/
1213
- #[\ReturnTypeWillChange]
1214
- public function offsetUnset (mixed $ option )
1202
+ public function offsetUnset (mixed $ option ): void
1215
1203
{
1216
1204
throw new AccessException ('Removing options via array access is not supported. Use remove() instead. ' );
1217
1205
}
@@ -1221,14 +1209,11 @@ public function offsetUnset(mixed $option)
1221
1209
*
1222
1210
* This may be only a subset of the defined options.
1223
1211
*
1224
- * @return int Number of options
1225
- *
1226
1212
* @throws AccessException If accessing this method outside of {@link resolve()}
1227
1213
*
1228
1214
* @see \Countable::count()
1229
1215
*/
1230
- #[\ReturnTypeWillChange]
1231
- public function count ()
1216
+ public function count (): int
1232
1217
{
1233
1218
if (!$ this ->locked ) {
1234
1219
throw new AccessException ('Counting is only supported within closures of lazy options and normalizers. ' );
0 commit comments