Skip to content

Commit

Permalink
Fix phpstan build
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Nov 12, 2024
1 parent 5c4fc70 commit b2bed47
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/PHPStan/PregMatchTypeSpecifyingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b2bed47

Please sign in to comment.