WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

YoastSEO_Vendor\GuzzleHttp\Promise

all() Yoast 1.0

Given an array of promises, return a promise that is fulfilled when all the items in the array are fulfilled.

The promise's fulfillment value is an array with fulfillment values at respective positions to the original array. If any promise in the array rejects, the returned promise is rejected with the rejection reason.

Хуков нет.

Возвращает

PromiseInterface.

Использование

all( $promises );
$promises(смешанный) (обязательный)
Promises or values.

Код all() Yoast 15.6.2

<?php
function all($promises)
{
    $results = [];
    return \each($promises, function ($value, $idx) use(&$results) {
        $results[$idx] = $value;
    }, function ($reason, $idx, \YoastSEO_Vendor\GuzzleHttp\Promise\Promise $aggregate) {
        $aggregate->reject($reason);
    })->then(function () use(&$results) {
        \ksort($results);
        return $results;
    });
}