src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/InstancePropertyFetchAnalyzer.php 1 location
|
@@ 326-331 (lines=6) @@
|
323 |
|
if (!$prop_name) { |
324 |
|
if ($stmt_var_type->hasObjectType() && !$context->ignore_variable_property) { |
325 |
|
foreach ($stmt_var_type->getAtomicTypes() as $type) { |
326 |
|
if ($type instanceof Type\Atomic\TNamedObject) { |
327 |
|
$codebase->analyzer->addMixedMemberName( |
328 |
|
strtolower($type->value) . '::$', |
329 |
|
$context->calling_method_id ?: $statements_analyzer->getFileName() |
330 |
|
); |
331 |
|
} |
332 |
|
} |
333 |
|
} |
334 |
|
|
src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/StaticPropertyFetchAnalyzer.php 1 location
|
@@ 141-150 (lines=10) @@
|
138 |
|
$prop_name = null; |
139 |
|
} |
140 |
|
|
141 |
|
if (!$prop_name) { |
142 |
|
if ($fq_class_name) { |
143 |
|
$codebase->analyzer->addMixedMemberName( |
144 |
|
strtolower($fq_class_name) . '::$', |
145 |
|
$context->calling_method_id ?: $statements_analyzer->getFileName() |
146 |
|
); |
147 |
|
} |
148 |
|
|
149 |
|
return true; |
150 |
|
} |
151 |
|
|
152 |
|
if (!$fq_class_name |
153 |
|
|| !$context->check_classes |