diff --git a/VariableAnalysis/Lib/Helpers.php b/VariableAnalysis/Lib/Helpers.php index 30f7735..9b03bcd 100644 --- a/VariableAnalysis/Lib/Helpers.php +++ b/VariableAnalysis/Lib/Helpers.php @@ -755,7 +755,7 @@ public static function getListAssignments(File $phpcsFile, $listOpenerIndex) $parentSquareBracket = self::findContainingOpeningSquareBracket($phpcsFile, $listOpenerIndex); if (is_int($parentSquareBracket)) { // Collect the opening index, but we don't actually need the closing paren index so just make that 0 - $parents[$parentSquareBracket] = 0; + $parents = [$parentSquareBracket => 0]; } } // If we have no parents, this is not a nested assignment and therefore is not an assignment