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 66d16cb commit fd46859Copy full SHA for fd46859
src/Illuminate/Collections/Enumerable.php
@@ -1222,7 +1222,7 @@ public function count(): int;
1222
/**
1223
* Count the number of items in the collection by a field or using a callback.
1224
*
1225
- * @param (callable(TValue, TKey): array-key)|string|null $countBy
+ * @param (callable(TValue, TKey): array-key|\UnitEnum)|string|null $countBy
1226
* @return static<array-key, int>
1227
*/
1228
public function countBy($countBy = null);
0 commit comments