mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
51333e8f6e
This change allows using `Class_` namespaces like in PhpParser's original `NameResolver` implementation. ``` if ($node instanceof \PhpParser\Node\Stmt\Class_) { $fqcn = (string)($node->namespacedName ?? $node->name); $extents = (string)($node->extends->getAttribute('resolvedName')); } ``` Corresponding parts have been duplicated and modified from https://github.com/nikic/PHP-Parser/blob/v4.10.4/lib/PhpParser/NodeVisitor/NameResolver.php#L69-L81