mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Merge pull request #8148 from BenMorel/reflectionproperty
Add ReflectionProperty properties
This commit is contained in:
commit
d626d24241
@ -450,6 +450,10 @@ return [
|
||||
'reflectionparameter' => [
|
||||
'name' => 'string',
|
||||
],
|
||||
'reflectionproperty' => [
|
||||
'name' => 'string',
|
||||
'class' => 'string',
|
||||
],
|
||||
'phpparser\\node\\expr\\array_' => [
|
||||
'items' => 'array<int, PhpParser\Node\Expr\ArrayItem|null>',
|
||||
],
|
||||
|
@ -133,9 +133,9 @@ class Reflection
|
||||
$storage->properties[$property_name]->visibility = ClassLikeAnalyzer::VISIBILITY_PRIVATE;
|
||||
}
|
||||
|
||||
$property_id = (string)$class_property->class . '::$' . $property_name;
|
||||
$property_id = $class_property->class . '::$' . $property_name;
|
||||
|
||||
$storage->declaring_property_ids[$property_name] = (string)$class_property->class;
|
||||
$storage->declaring_property_ids[$property_name] = $class_property->class;
|
||||
$storage->appearing_property_ids[$property_name] = $property_id;
|
||||
|
||||
if (!$class_property->isPrivate()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user