From b2bed4734f0cc156ee1fe9c0da2550420d99a21e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 12 Nov 2024 17:29:46 +0100 Subject: [PATCH] Fix phpstan build --- src/PHPStan/PregMatchTypeSpecifyingExtension.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/PHPStan/PregMatchTypeSpecifyingExtension.php b/src/PHPStan/PregMatchTypeSpecifyingExtension.php index 3ba1db5..3db0ce0 100644 --- a/src/PHPStan/PregMatchTypeSpecifyingExtension.php +++ b/src/PHPStan/PregMatchTypeSpecifyingExtension.php @@ -93,14 +93,12 @@ public function specifyTypes(MethodReflection $methodReflection, StaticCall $nod $context = $context->negate(); } - // @phpstan-ignore function.alreadyNarrowedType, function.impossibleType + // @phpstan-ignore function.alreadyNarrowedType if (method_exists('PHPStan\Analyser\SpecifiedTypes', 'setRootExpr')) { - // @phpstan-ignore method.notFound $typeSpecifier = $this->typeSpecifier->create( $matchesArg->value, $matchedType, $context, - // @phpstan-ignore argument.type $scope )->setRootExpr($node);