mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
grammar
This commit is contained in:
parent
a180dc6099
commit
7418e6e167
@ -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
|
||||
)
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user