1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-04 12:14:04 +00:00
This commit is contained in:
Samuel Štancl 2023-01-04 03:04:56 +01:00
parent 9078280a44
commit db1dc334a6

View file

@ -118,6 +118,7 @@ class Tenancy
*/ */
public static function find(int|string $id): Tenant|null public static function find(int|string $id): Tenant|null
{ {
// todo update all syntax like this once we're fully on PHP 8.2
/** @var (Tenant&Model)|null */ /** @var (Tenant&Model)|null */
$tenant = static::model()->where(static::model()->getTenantKeyName(), $id)->first(); $tenant = static::model()->where(static::model()->getTenantKeyName(), $id)->first();