diff --git a/src/Psalm/Internal/PhpVisitor/SimpleNameResolver.php b/src/Psalm/Internal/PhpVisitor/SimpleNameResolver.php index 133fe825584..04d41daa332 100644 --- a/src/Psalm/Internal/PhpVisitor/SimpleNameResolver.php +++ b/src/Psalm/Internal/PhpVisitor/SimpleNameResolver.php @@ -175,7 +175,7 @@ private function resolveSignature(PhpParser\NodeAbstract $node): void */ private function resolveType(?Node $node): ?Node { - if ($node instanceof Node\NullableType) { + if ($node instanceof NullableType) { $node->type = $this->resolveType($node->type); return $node;