@@ -301,11 +301,8 @@ public function all()
301
301
* Returns true if the named field exists.
302
302
*
303
303
* @param string $name The field name
304
- *
305
- * @return bool true if the field exists, false otherwise
306
304
*/
307
- #[\ReturnTypeWillChange]
308
- public function offsetExists (mixed $ name )
305
+ public function offsetExists (mixed $ name ): bool
309
306
{
310
307
return $ this ->has ($ name );
311
308
}
@@ -319,8 +316,7 @@ public function offsetExists(mixed $name)
319
316
*
320
317
* @throws \InvalidArgumentException if the field does not exist
321
318
*/
322
- #[\ReturnTypeWillChange]
323
- public function offsetGet (mixed $ name )
319
+ public function offsetGet (mixed $ name ): FormField |array
324
320
{
325
321
return $ this ->fields ->get ($ name );
326
322
}
@@ -331,12 +327,9 @@ public function offsetGet(mixed $name)
331
327
* @param string $name The field name
332
328
* @param string|array $value The value of the field
333
329
*
334
- * @return void
335
- *
336
330
* @throws \InvalidArgumentException if the field does not exist
337
331
*/
338
- #[\ReturnTypeWillChange]
339
- public function offsetSet (mixed $ name , mixed $ value )
332
+ public function offsetSet (mixed $ name , mixed $ value ): void
340
333
{
341
334
$ this ->fields ->set ($ name , $ value );
342
335
}
@@ -345,11 +338,8 @@ public function offsetSet(mixed $name, mixed $value)
345
338
* Removes a field from the form.
346
339
*
347
340
* @param string $name The field name
348
- *
349
- * @return void
350
341
*/
351
- #[\ReturnTypeWillChange]
352
- public function offsetUnset (mixed $ name )
342
+ public function offsetUnset (mixed $ name ): void
353
343
{
354
344
$ this ->fields ->remove ($ name );
355
345
}
0 commit comments