call_user_func_array

Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Call a callback with an array of parameters
<?php call_user_func_array(callable $callback, array $args): mixed
<?php         }



        $task = array_shift($tasks);

        $promise = call_user_func_array($task, func_get_args());

        assert($promise instanceof PromiseInterface);

        $pending = $promise;