1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 17:14:03 +00:00

StlyeCi Fix - removed PHP 8 nullsafe operator for compatibility with older PHP versions, replaced with inline if

This commit is contained in:
Ralfs 2021-04-12 12:50:09 +03:00
parent 9c9b2da618
commit 3145d8330d

View file

@ -43,7 +43,7 @@ class DomainTenantResolver extends Contracts\CachedTenantResolver
->first();
/** @var Domain|null $domain */
$domain = $tenant?->domains->first();
$domain = $tenant ? $tenant->domains->first() : null;
if ($domain) {
static::$currentDomain = $domain;