diff --git a/src/helpers.php b/src/helpers.php index 903c5c40..c8f5c9b3 100644 --- a/src/helpers.php +++ b/src/helpers.php @@ -30,7 +30,8 @@ if (! function_exists('tenant')) { return app(Tenant::class); } - return app(Tenant::class)->getAttribute($key); + // @phpstan-ignore-next-line nullsafe.neverNull + return app(Tenant::class)?->getAttribute($key); } }