From 19b7672d2a697c03283c03fa677839c5710737ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Fri, 4 Oct 2019 21:24:20 +0200 Subject: [PATCH] Fix if statement --- src/TenancyBootstrappers/QueueTenancyBootstrapper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/TenancyBootstrappers/QueueTenancyBootstrapper.php b/src/TenancyBootstrappers/QueueTenancyBootstrapper.php index 5060a9fc..d37f9426 100644 --- a/src/TenancyBootstrappers/QueueTenancyBootstrapper.php +++ b/src/TenancyBootstrappers/QueueTenancyBootstrapper.php @@ -22,7 +22,9 @@ class QueueTenancyBootstrapper implements TenancyBootstrapper $this->app = $app; $bootstrapper = &$this; - if (! $queue = $this->app['queue'] instanceof QueueFake) { + + $queue = $this->app['queue']; + if (! $queue instanceof QueueFake) { $queue->createPayloadUsing(function () use (&$bootstrapper) { return $bootstrapper->getPayload(); });