Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Queue/Commands/QueueWorkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.'];
Expand Down
Loading