diff --git a/src/AsyncQueue/ClosureJob.php b/src/AsyncQueue/ClosureJob.php index 296fe62..bfd3b00 100644 --- a/src/AsyncQueue/ClosureJob.php +++ b/src/AsyncQueue/ClosureJob.php @@ -80,7 +80,7 @@ protected function getInjections(array $definitions, string $callableName, array { $injections = []; - foreach ($definitions ?? [] as $pos => $definition) { + foreach ($definitions as $pos => $definition) { $value = $arguments[$pos] ?? $arguments[$definition->getMeta('name')] ?? null; if ($value === null) { if ($definition->getMeta('defaultValueAvailable')) {