<?php array_reduce(array $array, callable $callback, mixed $initial = null): mixed
<?php $cancellationQueue->enqueue($initialValue); \array_reduce($promisesOrValues, $wrappedReduceFunc, resolve($initialValue)) ->done($resolve, $reject); }, $cancellationQueue); }