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.