1
0
Fork 0
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:
Samuel Štancl 2023-02-01 06:05:26 +01:00
parent 5ceee3b9b4
commit 66c7d6a066
2 changed files with 2 additions and 3 deletions

View file

@ -111,7 +111,6 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
extensions: imagick, swoole
- uses: actions/checkout@v2
- name: Install composer dependencies
run: composer install

View file

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