diff --git a/src/Queue.php b/src/Queue.php index 2287514..7c7c624 100644 --- a/src/Queue.php +++ b/src/Queue.php @@ -318,9 +318,14 @@ public static function any($concurrency, array $jobs, $handler) * $q = new Queue(10, null, array($browser, 'get')); * ``` * - * @param int $concurrency concurrency soft limit - * @param int|null $limit queue hard limit or NULL=unlimited - * @param callable(mixed):PromiseInterface $handler + * @template A1 (any number of function arguments, see https://github.com/phpstan/phpstan/issues/8214) + * @template A2 + * @template A3 + * @template A4 + * @template A5 + * @param int $concurrency concurrency soft limit + * @param int|null $limit queue hard limit or NULL=unlimited + * @param callable(A1,A2,A3,A4,A5):PromiseInterface $handler * @throws \InvalidArgumentException */ public function __construct($concurrency, $limit, $handler)