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

resolve phpstan issues

This commit is contained in:
Samuel Štancl 2023-02-01 06:17:19 +01:00
parent 66c7d6a066
commit 0a205dd817
2 changed files with 7 additions and 0 deletions

View file

@ -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;