Skip to content

Commit 677618b

Browse files
Correct PHPDoc for Arr::sole callable type to avoid return type ambiguity (#56108)
1 parent 3c0aacc commit 677618b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Collections/Arr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ public static function shuffle($array)
951951
* 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(mixed, array-key): array|null $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)