From 748122906365f97f528897a2eec4d3d84a790388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Thu, 19 Jun 2025 00:12:38 +0200 Subject: [PATCH] revert regression in last commit, opt for a phpstan ignore instead --- src/helpers.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } }