From bcf777da6b791f8d83d4cfe25d793cad647baf0f Mon Sep 17 00:00:00 2001 From: lukinovec Date: Thu, 23 Feb 2023 15:32:24 +0100 Subject: [PATCH] Fix `$bootstrapFeatures` property --- src/TenancyServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TenancyServiceProvider.php b/src/TenancyServiceProvider.php index 6971b199..f50d2002 100644 --- a/src/TenancyServiceProvider.php +++ b/src/TenancyServiceProvider.php @@ -14,7 +14,7 @@ use Stancl\Tenancy\Resolvers\DomainTenantResolver; class TenancyServiceProvider extends ServiceProvider { - public static $bootstrapFeatures = true; + public static bool $bootstrapFeatures = true; /* Register services. */ public function register(): void @@ -27,7 +27,7 @@ class TenancyServiceProvider extends ServiceProvider $this->app->singleton(Tenancy::class); if (static::bootstrapFeatures()) { - $this->bootstrapFeatures(); + $this->bootstrapFeatures; } // Make it possible to inject the current tenant by typehinting the Tenant contract.