1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00
This commit is contained in:
Bruce Weirdan 2021-07-18 16:52:00 +03:00
parent a180dc6099
commit 7418e6e167
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D
2 changed files with 2 additions and 2 deletions

View File

@ -1149,7 +1149,7 @@ class InstancePropertyAssignmentAnalyzer
$context,
new CodeLocation($statements_analyzer->getSource(), $stmt)
)
// when methods existance is asserted by a plugin it doesn't necessarily has storage
// when property existence is asserted by a plugin it doesn't necessarily has storage
|| ($codebase->properties->hasStorage($property_id)
&& $codebase->properties->getStorage($property_id)->is_static
)

View File

@ -314,7 +314,7 @@ class AtomicPropertyFetchAnalyzer
$property_id = $context->self . '::$' . $prop_name;
} elseif (!$naive_property_exists
|| (!$is_static_access
// when methods existance is asserted by a plugin it doesn't necessarily has storage
// when property existence is asserted by a plugin it doesn't necessarily has storage
&& $codebase->properties->hasStorage($property_id)
&& $codebase->properties->getStorage($property_id)->is_static
)