diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/InstancePropertyAssignmentAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/InstancePropertyAssignmentAnalyzer.php index f800b49539c..71171055079 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/InstancePropertyAssignmentAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Assignment/InstancePropertyAssignmentAnalyzer.php @@ -1178,6 +1178,12 @@ private static function taintProperty( $context->vars_in_scope[$var_id] = $stmt_var_type; } } else { + if (\in_array('TaintedInput', $statements_analyzer->getSuppressedIssues())) { + $assignment_value_type->parent_nodes = []; + return; + } + + $code_location = new CodeLocation($statements_analyzer->getSource(), $stmt); $localized_property_node = new TaintNode(