src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/StaticPropertyFetchAnalyzer.php 1 location
|
@@ 210-220 (lines=11) @@
|
207 |
|
); |
208 |
|
} |
209 |
|
|
210 |
|
if ($codebase->store_node_types |
211 |
|
&& !$context->collect_initializations |
212 |
|
&& !$context->collect_mutations |
213 |
|
&& ($stmt_type = $statements_analyzer->node_data->getType($stmt)) |
214 |
|
) { |
215 |
|
$codebase->analyzer->addNodeType( |
216 |
|
$statements_analyzer->getFilePath(), |
217 |
|
$stmt->name, |
218 |
|
$stmt_type->getId() |
219 |
|
); |
220 |
|
} |
221 |
|
|
222 |
|
return true; |
223 |
|
} |
src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/VariableFetchAnalyzer.php 1 location
|
@@ 95-105 (lines=11) @@
|
92 |
|
|
93 |
|
$statements_analyzer->node_data->setType($stmt, clone $context->vars_in_scope['$this']); |
94 |
|
|
95 |
|
if ($codebase->store_node_types |
96 |
|
&& !$context->collect_initializations |
97 |
|
&& !$context->collect_mutations |
98 |
|
&& ($stmt_type = $statements_analyzer->node_data->getType($stmt)) |
99 |
|
) { |
100 |
|
$codebase->analyzer->addNodeType( |
101 |
|
$statements_analyzer->getFilePath(), |
102 |
|
$stmt, |
103 |
|
$stmt_type->getId() |
104 |
|
); |
105 |
|
} |
106 |
|
|
107 |
|
return true; |
108 |
|
} |
src/Psalm/Internal/Analyzer/Statements/Expression/Fetch/InstancePropertyFetchAnalyzer.php 1 location
|
@@ 949-959 (lines=11) @@
|
946 |
|
} |
947 |
|
} |
948 |
|
|
949 |
|
if ($codebase->store_node_types |
950 |
|
&& !$context->collect_initializations |
951 |
|
&& !$context->collect_mutations |
952 |
|
&& ($stmt_type = $statements_analyzer->node_data->getType($stmt)) |
953 |
|
) { |
954 |
|
$codebase->analyzer->addNodeType( |
955 |
|
$statements_analyzer->getFilePath(), |
956 |
|
$stmt->name, |
957 |
|
$stmt_type->getId() |
958 |
|
); |
959 |
|
} |
960 |
|
|
961 |
|
if ($invalid_fetch_types) { |
962 |
|
$lhs_type_part = $invalid_fetch_types[0]; |