Skip to content

Commit 82a86ac

Browse files
AhmedAlaa4611taylorotwellshaedrich
authored
[12.x] Fix PHPDoc for Arr::sole method (#56096)
* Fix PHPDoc for Arr::sole method * Update src/Illuminate/Collections/Arr.php Co-authored-by: Sebastian Hädrich <[email protected]> --------- Co-authored-by: Taylor Otwell <[email protected]> Co-authored-by: Sebastian Hädrich <[email protected]>
1 parent 50a03be commit 82a86ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Collections/Arr.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -948,10 +948,10 @@ public static function shuffle($array)
948948
}
949949

950950
/**
951-
* Get the first item in the collection, but only if exactly one item exists. Otherwise, throw an exception.
951+
* Get the first item in the array, but only if exactly one item exists. Otherwise, throw an exception.
952952
*
953953
* @param array $array
954-
* @param callable $callback
954+
* @param callable(mixed, array-key): array|null $callback
955955
*
956956
* @throws \Illuminate\Support\ItemNotFoundException
957957
* @throws \Illuminate\Support\MultipleItemsFoundException

0 commit comments

Comments
 (0)