mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
remove the remaining dynamic property assignment
This commit is contained in:
parent
8bc71fcf85
commit
8ca0fc209a
@ -225,11 +225,10 @@ class SimpleNameResolver extends NodeVisitorAbstract
|
||||
|
||||
protected function addNamespacedName(Stmt\Class_ $node): void
|
||||
{
|
||||
/** @psalm-suppress UndefinedPropertyAssignment */
|
||||
$node->namespacedName = Name::concat(
|
||||
$node->setAttribute('namespacedName', Name::concat(
|
||||
$this->nameContext->getNamespace(),
|
||||
(string)$node->name
|
||||
);
|
||||
));
|
||||
}
|
||||
|
||||
protected function resolveAttrGroups(Stmt\Class_ $node): void
|
||||
|
@ -152,7 +152,7 @@ class CodebaseTest extends TestCase
|
||||
$storage = $event->getStorage();
|
||||
$codebase = $event->getCodebase();
|
||||
if ($storage->name === 'Psalm\\CurrentTest\\C' && $stmt instanceof Class_) {
|
||||
$storage->custom_metadata['fqcn'] = (string)($stmt->namespacedName ?? $stmt->name);
|
||||
$storage->custom_metadata['fqcn'] = (string)($stmt->getAttribute('namespacedName') ?? $stmt->name);
|
||||
$storage->custom_metadata['extends'] = $stmt->extends instanceof Name
|
||||
? (string)$stmt->extends->getAttribute('resolvedName')
|
||||
: '';
|
||||
|
Loading…
Reference in New Issue
Block a user