1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00

Fix map() return type

This commit is contained in:
Aaron Piotrowski 2016-09-09 18:05:01 -05:00
parent 2a6dddcfa7
commit 7f5142be88

View File

@ -724,7 +724,7 @@ function choose(array $awaitables): Awaitable {
* *
* @return \Interop\Async\Awaitable[] Array of awaitables resolved with the result of the mapped function. * @return \Interop\Async\Awaitable[] Array of awaitables resolved with the result of the mapped function.
*/ */
function map(callable $callback, array ...$awaitables): Awaitable { function map(callable $callback, array ...$awaitables): array {
$callback = lift($callback); $callback = lift($callback);
foreach ($awaitables as $awaitableSet) { foreach ($awaitables as $awaitableSet) {