From 79f6a9b7de11428e389f8c66e0419ff6bebd1985 Mon Sep 17 00:00:00 2001 From: Oliver Kaufmann Date: Thu, 23 Feb 2023 11:11:42 +0100 Subject: [PATCH] queue property of queue config can be a array --- src/Commands/LaravelHorizonDoctorCommand.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Commands/LaravelHorizonDoctorCommand.php b/src/Commands/LaravelHorizonDoctorCommand.php index 042a9cb..b77d449 100644 --- a/src/Commands/LaravelHorizonDoctorCommand.php +++ b/src/Commands/LaravelHorizonDoctorCommand.php @@ -103,9 +103,12 @@ protected function checkDefaultQueuesAreProcessed(array $horizonConfigs, array $ ->flatten() ->unique() ->values(); - $defaultQueue = $queueConfig['queue']; - if (! $processedQueuesInHorizon->contains($defaultQueue)) { - $errors[] = "Default queue `{$defaultQueue}` of connection `{$connectionName}` will not be processed by any worker set in config/horizon.php"; + + $handledQueues = collect($queueConfig['queue']); + foreach ($handledQueues as $queue) { + if (! $processedQueuesInHorizon->contains($queue)) { + $errors[] = "Queue `{$queue}` of connection `{$connectionName}` will not be processed by any worker set in config/horizon.php"; + } } if ($errors->count()) {