Skip to content

Commit 7491e7c

Browse files
committed
Better types for any
1 parent ecbc922 commit 7491e7c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/functions.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ function collect(array $array): Collection
7777

7878
if (!function_exists('any')) {
7979

80+
/**
81+
* @param array<mixed> $values
82+
* @param callable $cb
83+
* @return bool
84+
*/
8085
function any(array $values, callable $cb): bool
8186
{
8287
return array_reduce($values, function (bool $carry, $value) use ($cb) {

0 commit comments

Comments
 (0)