From e63cbf40a69f09308b210506b4b1e0a612936402 Mon Sep 17 00:00:00 2001 From: BadrSoft <49716926+BadrtSoft@users.noreply.github.com> Date: Sat, 26 Sep 2026 19:39:50 +0100 Subject: [PATCH] Update QueueWorkCommand.php --- src/Queue/Commands/QueueWorkCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Queue/Commands/QueueWorkCommand.php b/src/Queue/Commands/QueueWorkCommand.php index acb12ad..68210a5 100644 --- a/src/Queue/Commands/QueueWorkCommand.php +++ b/src/Queue/Commands/QueueWorkCommand.php @@ -25,7 +25,7 @@ class QueueWorkCommand extends Command public static function resolveQueueConnection(?string $option, ?array $config): array { $config = $config ?? []; - $queue = $option ?? $config['default'] ?? null; + $queue = $option ?: ($config['default'] ?? null); if (!$queue) { return [null, 'No queue specified and no default queue configured. Set `default` in your queue config or pass --queue.'];