mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 00:34:05 +00:00
Update currentOrFail declaration
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
7eb8356c74
commit
2201545c51
1 changed files with 2 additions and 1 deletions
|
|
@ -51,7 +51,8 @@ class Tenant extends Model implements Contracts\Tenant
|
||||||
return tenant();
|
return tenant();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function currentOrFail(): self
|
/** @throws TenancyNotInitializedException */
|
||||||
|
public static function currentOrFail(): static
|
||||||
{
|
{
|
||||||
return static::current() ?? throw new TenancyNotInitializedException;
|
return static::current() ?? throw new TenancyNotInitializedException;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue