Skip to content

Commit

Permalink
Fix phpstan SA
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Oct 2, 2023
1 parent 3b76729 commit e8fc445
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mapper/Tree/Builder/ShapedArrayNodeBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ private function children(ShapedArrayType $type, Shell $shell, RootNodeBuilder $

if (!$type->sealed()) {
foreach ($value as $k => $v) {
if (!array_key_exists($key, $children)) {
$children[$key] = TreeNode::leaf(Shell::root(new MixedType(), $v), $v);
if (!array_key_exists($k, $children)) {
$children[$k] = TreeNode::leaf(Shell::root(new MixedType(), $v), $v);
}
}
}
Expand Down

0 comments on commit e8fc445

Please sign in to comment.