Skip to content

Commit fd9681f

Browse files
lancepiochtaylorotwellshaedrich
authored
[11.x] Add valid values to ensure method (#54840)
* Add valid values to ensure method * Update src/Illuminate/Collections/Traits/EnumeratesValues.php Co-authored-by: Sebastian Hädrich <11225821+shaedrich@users.noreply.github.com> * Update EnumeratesValues.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com> Co-authored-by: Sebastian Hädrich <11225821+shaedrich@users.noreply.github.com>
1 parent 9de7525 commit fd9681f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Collections/Traits/EnumeratesValues.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ public function value($key, $default = null)
342342
*
343343
* @template TEnsureOfType
344344
*
345-
* @param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>> $type
345+
* @param class-string<TEnsureOfType>|array<array-key, class-string<TEnsureOfType>>|scalar|'array'|'null' $type
346346
* @return static<TKey, TEnsureOfType>
347347
*
348348
* @throws \UnexpectedValueException

0 commit comments

Comments
 (0)