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:
parent
2a6dddcfa7
commit
7f5142be88
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user