We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88fb9d8 commit 9ff58ffCopy full SHA for 9ff58ff
src/Illuminate/Collections/Arr.php
@@ -948,10 +948,10 @@ public static function shuffle($array)
948
}
949
950
/**
951
- * Get the first item in the collection, but only if exactly one item exists. Otherwise, throw an exception.
+ * Get the first item in the array, but only if exactly one item exists. Otherwise, throw an exception.
952
*
953
* @param array $array
954
- * @param callable $callback
+ * @param callable(mixed, array-key): array|null $callback
955
956
* @throws \Illuminate\Support\ItemNotFoundException
957
* @throws \Illuminate\Support\MultipleItemsFoundException
0 commit comments