Skip to content

Commit 31647ee

Browse files
committed
Check Node
1 parent 0667821 commit 31647ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Rules/Functions/DebuggerFunctionRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function getNodeType(): string
2020

2121
public function processNode(Node $node, Scope $scope): array
2222
{
23-
if ($node->name !== 'PHPStan\dumpType') {
23+
if (!($node->name instanceof \PhpParser\Node\Name) || (string) $node->name !== 'PHPStan\\dumpType') {
2424
return [];
2525
}
2626

0 commit comments

Comments
 (0)