mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Remove unnecessary $child_stmt
This commit is contained in:
parent
54edbdabf6
commit
766fc174a3
@ -155,8 +155,6 @@ class ArrayAssignmentAnalyzer
|
||||
|
||||
$offset_already_existed = false;
|
||||
|
||||
$child_stmt = null;
|
||||
|
||||
self::analyzeNestedArrayAssignment(
|
||||
$statements_analyzer,
|
||||
$codebase,
|
||||
@ -166,7 +164,6 @@ class ArrayAssignmentAnalyzer
|
||||
array_reverse($child_stmts),
|
||||
$root_var_id,
|
||||
$parent_var_id,
|
||||
$child_stmt,
|
||||
$root_type,
|
||||
$current_type,
|
||||
$current_dim,
|
||||
@ -678,7 +675,6 @@ class ArrayAssignmentAnalyzer
|
||||
array $child_stmts,
|
||||
?string $root_var_id,
|
||||
?string &$parent_var_id,
|
||||
?PhpParser\Node\Expr &$child_stmt,
|
||||
Union &$root_type,
|
||||
Union &$current_type,
|
||||
?PhpParser\Node\Expr &$current_dim,
|
||||
@ -687,8 +683,6 @@ class ArrayAssignmentAnalyzer
|
||||
$reversed_child_stmts = [];
|
||||
$var_id_additions = [];
|
||||
|
||||
$child_stmt = null;
|
||||
|
||||
$root_var = reset($child_stmts)->var;
|
||||
|
||||
// First go from the root element up, and go as far as we can to figure out what
|
||||
|
Loading…
Reference in New Issue
Block a user