From f89a3c96651c9f541a78701b14c64ff76cf4a963 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 2 Dec 2022 12:23:28 +0100 Subject: [PATCH] Fix --- .../Analyzer/Statements/Expression/AssignmentAnalyzer.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php index f40b8d406..2860ce624 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php @@ -1444,8 +1444,6 @@ class AssignmentAnalyzer $temp ); } - - $can_be_empty = !$assign_value_atomic_type->isNonEmpty(); } elseif ($assign_value_atomic_type->hasArrayAccessInterface($codebase)) { ForeachAnalyzer::getKeyValueParamsForTraversableObject( $assign_value_atomic_type,