mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 04:04:04 +00:00
resolve phpstan issues
This commit is contained in:
parent
66c7d6a066
commit
0a205dd817
2 changed files with 7 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ class Tenancy
|
|||
*/
|
||||
public static function find(int|string $id): Tenant|null
|
||||
{
|
||||
/** @var (Tenant&Model)|null */
|
||||
$tenant = static::model()->where(static::model()->getTenantKeyName(), $id)->first();
|
||||
|
||||
return $tenant;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue