diff --git a/src/Psalm/Type/Reconciler.php b/src/Psalm/Type/Reconciler.php index 0f9334af6..b17719aec 100644 --- a/src/Psalm/Type/Reconciler.php +++ b/src/Psalm/Type/Reconciler.php @@ -231,8 +231,8 @@ class Reconciler } if (($statements_analyzer->data_flow_graph instanceof \Psalm\Internal\Codebase\TaintFlowGraph - && (!$result_type->hasScalarType()) - || ($result_type->hasString() && !$result_type->hasLiteralString())) + && (!$result_type->hasScalarType() + || ($result_type->hasString() && !$result_type->hasLiteralString()))) || $statements_analyzer->data_flow_graph instanceof \Psalm\Internal\Codebase\VariableUseGraph ) { if ($before_adjustment && $before_adjustment->parent_nodes) {