Skip to content

Commit cb14287

Browse files
committed
Fix
1 parent 579b075 commit cb14287

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Testing/TypeInferenceTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,15 +148,15 @@ public function gatherAssertTypes(string $file): array
148148
}
149149

150150
$functionName = $nameNode->toString();
151-
if ($functionName === 'PHPStan\\Analyser\\assertType') {
151+
if ($functionName === 'PHPStan\\Testing\\assertType') {
152152
$expectedType = $scope->getType($node->args[0]->value);
153153
$actualType = $scope->getType($node->args[1]->value);
154154
$assert = ['type', $file, $expectedType, $actualType, $node->getLine()];
155-
} elseif ($functionName === 'PHPStan\\Analyser\\assertNativeType') {
155+
} elseif ($functionName === 'PHPStan\\Testing\\assertNativeType') {
156156
$expectedType = $scope->getNativeType($node->args[0]->value);
157157
$actualType = $scope->getNativeType($node->args[1]->value);
158158
$assert = ['type', $file, $expectedType, $actualType, $node->getLine()];
159-
} elseif ($functionName === 'PHPStan\\Analyser\\assertVariableCertainty') {
159+
} elseif ($functionName === 'PHPStan\\Testing\\assertVariableCertainty') {
160160
$certainty = $node->args[0]->value;
161161
if (!$certainty instanceof StaticCall) {
162162
$this->fail(sprintf('First argument of %s() must be TrinaryLogic call', $functionName));

0 commit comments

Comments
 (0)