Skip to content

Commit 14b6d01

Browse files
authored
Update QueueWorkCommand.php (#6)
1 parent e5433d8 commit 14b6d01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Queue/Commands/QueueWorkCommand.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class QueueWorkCommand extends Command
2525
public static function resolveQueueConnection(?string $option, ?array $config): array
2626
{
2727
$config = $config ?? [];
28-
$queue = $option ?? $config['default'] ?? null;
28+
$queue = $option ?: ($config['default'] ?? null);
2929

3030
if (!$queue) {
3131
return [null, 'No queue specified and no default queue configured. Set `default` in your queue config or pass --queue.'];

0 commit comments

Comments
 (0)