Skip to content

Commit

Permalink
Consider emptiness for array_count_values()
Browse files Browse the repository at this point in the history
Fixes #7044
  • Loading branch information
weirdan committed Dec 2, 2021
1 parent 826b26b commit dc271fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stubs/CoreGenericFunctions.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -1084,10 +1084,11 @@ function str_getcsv(string $string, string $separator = ',', string $enclosure =

/**
* @template TKey as array-key
* @template TArray as array<mixed, TKey>
*
* @param array<mixed, TKey> $array
* @param TArray $array
*
* @return array<TKey, positive-int>
* @return (TArray is non-empty-array ? non-empty-array<TKey, positive-int> : array<empty, empty>)
*
* @psalm-pure
*/
Expand Down

0 comments on commit dc271fe

Please sign in to comment.