Skip to content

Commit d3d4ec3

Browse files
authored
Merge pull request #172 from WyriHaximus-secret-labs/add-missing-typehint-to-some-howMany
Add type declarations for `some()`
2 parents 9ea755b + 1ac36b1 commit d3d4ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function any(array $promisesOrValues): PromiseInterface
147147
* @param int $howMany
148148
* @return PromiseInterface
149149
*/
150-
function some(array $promisesOrValues, $howMany): PromiseInterface
150+
function some(array $promisesOrValues, int $howMany): PromiseInterface
151151
{
152152
if ($howMany < 1) {
153153
return resolve([]);

0 commit comments

Comments
 (0)