diff --git a/phpstan.neon.dist b/phpstan.neon.dist index efbc722..5555c03 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -2,5 +2,4 @@ parameters: level: 9 paths: - src - - tests tmpDir: var/cache/phpstan \ No newline at end of file diff --git a/src/Variable/Variable.php b/src/Variable/Variable.php index eca8a6e..45014fd 100644 --- a/src/Variable/Variable.php +++ b/src/Variable/Variable.php @@ -63,7 +63,7 @@ public function string(): string */ public function enum(string $enumClass): BackedEnum { - if (!is_a($enumClass, BackedEnum::class, true)) { + if (!is_a($enumClass, BackedEnum::class, true)) { // @phpstan-ignore-line $type = class_exists($enumClass) ? sprintf('class-string<%s>', $enumClass) : 'string'; throw new TypeError(sprintf( '%s(): Argument #1 ($enumClass) must be of type class-string<%s>, %s given', @@ -88,7 +88,7 @@ public function enum(string $enumClass): BackedEnum */ public function enumByName(string $enumClass): UnitEnum { - if (!is_a($enumClass, UnitEnum::class, true)) { + if (!is_a($enumClass, UnitEnum::class, true)) { // @phpstan-ignore-line $type = class_exists($enumClass) ? sprintf('class-string<%s>', $enumClass) : 'string'; throw new TypeError(sprintf( '%s(): Argument #1 ($enumClass) must be of type class-string<%s>, %s given',