1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

fix wrong operator priority

This commit is contained in:
orklah 2021-10-04 00:24:58 +02:00
parent 2e7e343ef8
commit 1e70be9888

View File

@ -231,8 +231,8 @@ class Reconciler
} }
if (($statements_analyzer->data_flow_graph instanceof \Psalm\Internal\Codebase\TaintFlowGraph if (($statements_analyzer->data_flow_graph instanceof \Psalm\Internal\Codebase\TaintFlowGraph
&& (!$result_type->hasScalarType()) && (!$result_type->hasScalarType()
|| ($result_type->hasString() && !$result_type->hasLiteralString())) || ($result_type->hasString() && !$result_type->hasLiteralString())))
|| $statements_analyzer->data_flow_graph instanceof \Psalm\Internal\Codebase\VariableUseGraph || $statements_analyzer->data_flow_graph instanceof \Psalm\Internal\Codebase\VariableUseGraph
) { ) {
if ($before_adjustment && $before_adjustment->parent_nodes) { if ($before_adjustment && $before_adjustment->parent_nodes) {