mirror of
https://github.com/danog/amp.git
synced 2024-11-30 04:29:08 +01:00
Merge pull request #8 from zvirusz/patch-1
add missed $func passing in map() & filter()
This commit is contained in:
commit
f3658a2aab
@ -305,7 +305,7 @@ function first(array $promises) {
|
||||
* @return \Amp\Promise
|
||||
*/
|
||||
function map(array $promises, callable $func) {
|
||||
return combinator()->map($promises);
|
||||
return combinator()->map($promises, $func);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -319,7 +319,7 @@ function map(array $promises, callable $func) {
|
||||
* @return \Amp\Promise
|
||||
*/
|
||||
function filter(array $promises, callable $func) {
|
||||
return combinator()->filter($promises);
|
||||
return combinator()->filter($promises, $func);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user