1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2025-12-12 08:24:04 +00:00

phpstan: Remove ignore that is no longer necessary

This commit is contained in:
Samuel Štancl 2025-09-01 21:09:47 +02:00
parent f87f353cf9
commit e6cc6d6777

View file

@ -110,7 +110,7 @@ class TenancyUrlGenerator extends UrlGenerator
*/ */
public function route($name, $parameters = [], $absolute = true) public function route($name, $parameters = [], $absolute = true)
{ {
if ($name instanceof BackedEnum && ! is_string($name = $name->value)) { // @phpstan-ignore function.impossibleType if ($name instanceof BackedEnum && ! is_string($name = $name->value)) {
throw new InvalidArgumentException('Attribute [name] expects a string backed enum.'); throw new InvalidArgumentException('Attribute [name] expects a string backed enum.');
} }
@ -125,7 +125,7 @@ class TenancyUrlGenerator extends UrlGenerator
*/ */
public function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true) public function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
{ {
if ($name instanceof BackedEnum && ! is_string($name = $name->value)) { // @phpstan-ignore function.impossibleType if ($name instanceof BackedEnum && ! is_string($name = $name->value)) {
throw new InvalidArgumentException('Attribute [name] expects a string backed enum.'); throw new InvalidArgumentException('Attribute [name] expects a string backed enum.');
} }