mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 15:14:03 +00:00
fix PhpParser exception
This commit is contained in:
parent
5ceee3b9b4
commit
66c7d6a066
2 changed files with 2 additions and 3 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
|
@ -111,7 +111,6 @@ jobs:
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
php-version: '8.2'
|
php-version: '8.2'
|
||||||
extensions: imagick, swoole
|
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install composer dependencies
|
- name: Install composer dependencies
|
||||||
run: composer install
|
run: composer install
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ class Tenancy
|
||||||
/**
|
/**
|
||||||
* The current tenant.
|
* The current tenant.
|
||||||
*/
|
*/
|
||||||
public (Tenant&Model)|null $tenant = null;
|
public Tenant|null $tenant = null;
|
||||||
|
|
||||||
// todo docblock
|
// todo docblock
|
||||||
public ?Closure $getBootstrappersUsing = null;
|
public ?Closure $getBootstrappersUsing = null;
|
||||||
|
|
@ -111,7 +111,7 @@ class Tenancy
|
||||||
/**
|
/**
|
||||||
* Try to find a tenant using an ID.
|
* 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();
|
$tenant = static::model()->where(static::model()->getTenantKeyName(), $id)->first();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue