1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 14:14:03 +00:00

Fix if statement

This commit is contained in:
Samuel Štancl 2019-10-04 21:24:20 +02:00
parent 646034014b
commit 19b7672d2a

View file

@ -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();
});