Skip to content

Commit 108a329

Browse files
committed
Ignore some errors
1 parent 92438b0 commit 108a329

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/PHPStan/PregMatchTypeSpecifyingExtension.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,21 +93,26 @@ public function specifyTypes(MethodReflection $methodReflection, StaticCall $nod
9393
$context = $context->negate();
9494
}
9595

96+
// @phpstan-ignore function.alreadyNarrowedType, function.impossibleType
9697
if (method_exists('PHPStan\Analyser\SpecifiedTypes', 'setRootExpr')) {
98+
// @phpstan-ignore method.notFound
9799
$typeSpecifier = $this->typeSpecifier->create(
98100
$matchesArg->value,
99101
$matchedType,
100102
$context,
103+
// @phpstan-ignore argument.type
101104
$scope
102105
)->setRootExpr($node);
103106

104107
return $overwrite ? $typeSpecifier->setAlwaysOverwriteTypes() : $typeSpecifier;
105108
}
106109

110+
// @phpstan-ignore arguments.count
107111
return $this->typeSpecifier->create(
108112
$matchesArg->value,
109113
$matchedType,
110114
$context,
115+
// @phpstan-ignore argument.type
111116
$overwrite,
112117
$scope,
113118
$node

0 commit comments

Comments
 (0)