1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 11:34:03 +00:00

minor improvements for phpstan

This commit is contained in:
Samuel Štancl 2022-09-01 19:06:54 +02:00
parent 62d19c5f5d
commit f941df3a82
4 changed files with 18 additions and 9 deletions

View file

@ -146,7 +146,7 @@ class Tenancy
$tenants = is_string($tenants) ? [$tenants] : $tenants;
// Use all tenants if $tenants is falsey
$tenants = $tenants ?: $this->model()->cursor();
$tenants = $tenants ?: $this->model()->cursor(); // todo0 phpstan thinks this isn't needed, but tests fail without it
$originalTenant = $this->tenant;