Skip to content

Commit

Permalink
Merge pull request #172 from WyriHaximus-secret-labs/add-missing-type…
Browse files Browse the repository at this point in the history
…hint-to-some-howMany

Add type declarations for `some()`
  • Loading branch information
clue committed Aug 8, 2020
2 parents 9ea755b + 1ac36b1 commit d3d4ec3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function any(array $promisesOrValues): PromiseInterface
* @param int $howMany
* @return PromiseInterface
*/
function some(array $promisesOrValues, $howMany): PromiseInterface
function some(array $promisesOrValues, int $howMany): PromiseInterface
{
if ($howMany < 1) {
return resolve([]);
Expand Down

0 comments on commit d3d4ec3

Please sign in to comment.