We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156fdcf commit f2db8f9Copy full SHA for f2db8f9
src/Queue/Connectors/RabbitMQConnector.php
@@ -86,8 +86,10 @@ public function connect(array $config): Queue
86
return new HorizonRabbitMQQueue($context, $config);
87
}
88
89
- if ($worker instanceof RabbitMQQueue) {
90
- return new $worker($context, $config);
+ $customWorker = new $worker($context, $config);
+
91
+ if ($customWorker instanceof RabbitMQQueue) {
92
+ return $customWorker;
93
94
95
throw new InvalidArgumentException('Invalid worker.');
0 commit comments