mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Merge pull request #7217 from weirdan/restore-constant-attributes-storage
This commit is contained in:
commit
aea1cba982
@ -1296,6 +1296,19 @@ class ClassLikeNodeScanner
|
||||
}
|
||||
|
||||
$constant_storage->description = $description;
|
||||
|
||||
foreach ($stmt->attrGroups as $attr_group) {
|
||||
foreach ($attr_group->attrs as $attr) {
|
||||
$constant_storage->attributes[] = AttributeResolver::resolve(
|
||||
$this->codebase,
|
||||
$this->file_scanner,
|
||||
$this->file_storage,
|
||||
$this->aliases,
|
||||
$attr,
|
||||
$this->storage->name ?? null
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,12 @@ class ClassConstantStorage
|
||||
*/
|
||||
public $deprecated = false;
|
||||
|
||||
/**
|
||||
* @var list<AttributeStorage>
|
||||
* @psalm-suppress PossiblyUnusedProperty
|
||||
*/
|
||||
public $attributes = [];
|
||||
|
||||
/**
|
||||
* @var ?string
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user