From da0072bfe84adc10942c17d250cc3d777f36df36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Tue, 2 Aug 2022 15:01:03 +0200 Subject: [PATCH] Fix $tenant type --- src/Tenancy.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Tenancy.php b/src/Tenancy.php index 1359fcab..6fb225e6 100644 --- a/src/Tenancy.php +++ b/src/Tenancy.php @@ -17,8 +17,12 @@ class Tenancy { use Macroable, Debuggable; - /** The current tenant. */ - public Tenant&Model $tenant; + /** + * The current tenant. + * + * @var (Tenant&Model)|null + */ + public ?Tenant $tenant; // todo docblock public ?Closure $getBootstrappersUsing = null;