Skip to content

Commit

Permalink
phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Jul 4, 2023
1 parent 3f37679 commit 14e3943
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/code/core/Mage/Rule/Model/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,7 @@ protected function _convertFlatToRecursive(array $data)
$path = explode('--', $id);
$node =& $arr;
for ($i = 0, $l = count($path); $i < $l; $i++) {
if (!isset($node[$key][$path[$i]])) {
$node[$key][$path[$i]] = [];
}
$node =& $node[$key][$path[$i]];
$node =& $node[$key][$path[$i]] ?? [];
}
foreach ($data as $k => $v) {
$node[$k] = $v;
Expand Down

0 comments on commit 14e3943

Please sign in to comment.