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 10d0ea6 commit b8f9b4aCopy full SHA for b8f9b4a
src/Illuminate/Foundation/Bus/PendingDispatch.php
@@ -39,10 +39,18 @@ public function __construct($job)
39
$this->setQueueAndConnectionFromAttributesIfNotSet();
40
}
41
42
+ /**
43
+ * Set the job's queue and connection values based on the job's OnQueue/OnConnection attributes.
44
+ *
45
+ * @return void
46
+ * @throws \ReflectionException
47
+ */
48
protected function setQueueAndConnectionFromAttributesIfNotSet(): void
49
{
- if (($hasQueueSet = isset($this->job->queue))
- && ($hasConnectionSet = isset($this->job->connection))) {
50
+ $hasQueueSet = isset($this->job->queue);
51
+ $hasConnectionSet = isset($this->job->connection);
52
+
53
+ if ($hasQueueSet && $hasConnectionSet) {
54
return;
55
56
0 commit comments