Skip to content

Commit 18a3622

Browse files
authored
Fixed typehint for callable in Arr::partition (#54896)
1 parent 761b426 commit 18a3622

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
@@ -949,7 +949,7 @@ public static function reject($array, callable $callback)
949949
* @template TValue of mixed
950950
*
951951
* @param iterable<TKey, TValue> $array
952-
* @param callable $callback
952+
* @param callable(TValue, TKey): bool $callback
953953
* @return array<int<0, 1>, array<TKey, TValue>>
954954
*/
955955
public static function partition($array, callable $callback)

0 commit comments

Comments
 (0)