Skip to content

Commit fd46859

Browse files
authored
Update countBy docblock in Enumerable interface to allow for enum callback (#56897)
1 parent 66d16cb commit fd46859

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Collections/Enumerable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ public function count(): int;
12221222
/**
12231223
* Count the number of items in the collection by a field or using a callback.
12241224
*
1225-
* @param (callable(TValue, TKey): array-key)|string|null $countBy
1225+
* @param (callable(TValue, TKey): array-key|\UnitEnum)|string|null $countBy
12261226
* @return static<array-key, int>
12271227
*/
12281228
public function countBy($countBy = null);

0 commit comments

Comments
 (0)