mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 14:14:04 +00:00
phpstan fixes
This commit is contained in:
parent
3c183e45d9
commit
f955b38e2b
12 changed files with 24 additions and 21 deletions
|
|
@ -84,7 +84,6 @@ class DomainTenantResolver extends Contracts\CachedTenantResolver
|
|||
$tenant->domain, // Current domain
|
||||
]);
|
||||
} elseif (method_exists($tenant, 'domains') && $tenant->domains() instanceof Relation) {
|
||||
/** @var Tenant&Model $tenant */
|
||||
$tenant->unsetRelation('domains');
|
||||
|
||||
$domains = $tenant->domains->map(function (Domain&Model $domain) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue