mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 05:44:04 +00:00
phpcsfixer: enable nullable_type_declaration_for_default_null_value
This commit is contained in:
parent
eecf6f21c8
commit
20c1b9a940
6 changed files with 10 additions and 9 deletions
|
|
@ -151,7 +151,7 @@ class Tenancy
|
|||
/**
|
||||
* Try to find a tenant using an ID.
|
||||
*/
|
||||
public static function find(int|string $id, string $column = null, bool $withRelations = false): (Tenant&Model)|null
|
||||
public static function find(int|string $id, ?string $column = null, bool $withRelations = false): (Tenant&Model)|null
|
||||
{
|
||||
/** @var (Tenant&Model)|null $tenant */
|
||||
$tenant = static::model()->with($withRelations ? static::$findWith : [])->firstWhere($column ?? static::model()->getTenantKeyName(), $id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue