1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00
Oliver Hader 51333e8f6e
[TASK] Resolve namespace of class related AST statements
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
2021-09-27 11:19:24 +02:00
..
2021-09-02 20:53:23 +02:00
2021-06-10 18:07:41 -04:00
2021-09-23 19:29:15 +02:00
2021-09-19 19:30:03 +02:00
2021-07-24 16:02:13 +01:00
2021-06-07 22:55:21 -04:00
2021-06-07 22:55:21 -04:00
2021-08-07 10:18:06 +02:00
2021-08-09 21:18:19 +02:00
2021-06-07 22:55:21 -04:00
2021-09-09 16:04:12 +02:00
2021-09-07 12:35:38 +03:00
2021-09-07 12:35:38 +03:00
2021-06-07 22:55:21 -04:00
2021-06-07 22:55:21 -04:00
2021-09-19 19:30:03 +02:00
2021-08-19 19:34:30 +02:00
2021-09-16 23:07:32 +12:00
2021-07-18 02:51:33 +03:00
2021-09-08 22:41:23 +03:00
2021-06-07 22:55:21 -04:00