mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 19:14:04 +00:00
fix PhpParser exception
This commit is contained in:
parent
5ceee3b9b4
commit
66c7d6a066
2 changed files with 2 additions and 3 deletions
|
|
@ -19,7 +19,7 @@ class Tenancy
|
|||
/**
|
||||
* The current tenant.
|
||||
*/
|
||||
public (Tenant&Model)|null $tenant = null;
|
||||
public Tenant|null $tenant = null;
|
||||
|
||||
// todo docblock
|
||||
public ?Closure $getBootstrappersUsing = null;
|
||||
|
|
@ -111,7 +111,7 @@ class Tenancy
|
|||
/**
|
||||
* Try to find a tenant using an ID.
|
||||
*/
|
||||
public static function find(int|string $id): (Tenant&Model)|null
|
||||
public static function find(int|string $id): Tenant|null
|
||||
{
|
||||
$tenant = static::model()->where(static::model()->getTenantKeyName(), $id)->first();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue