From 24797278cd62eab55ee5ea62a05d4389733a4b35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 25 Aug 2025 17:50:09 +0200 Subject: [PATCH] phpstan fix --- src/Tenancy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tenancy.php b/src/Tenancy.php index 8e0ded99..86eb6d8d 100644 --- a/src/Tenancy.php +++ b/src/Tenancy.php @@ -136,7 +136,7 @@ class Tenancy public function getBootstrappers(): array { // If no callback for getting bootstrappers is set, we return the ones in config. - $resolve = $this->getBootstrappersUsing ?? function (Tenant $tenant) { + $resolve = $this->getBootstrappersUsing ?? function (?Tenant $tenant) { return config('tenancy.bootstrappers'); };