1
0
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:
Daniel Lowrey 2014-10-20 09:53:53 -04:00
commit f3658a2aab

View File

@ -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);
}
/**