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 64de012 commit 3b76729
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 @@ -74,9 +74,9 @@ private function children(ShapedArrayType $type, Shell $shell, RootNodeBuilder $
}

if (!$type->sealed()) {

Check warning on line 76 in src/Mapper/Tree/Builder/ShapedArrayNodeBuilder.php

View workflow job for this annotation

GitHub Actions / Mutation tests

Escaped Mutant for Mutator "LogicalNot": --- Original +++ New @@ @@ $children[$key] = $rootBuilder->build($child); unset($value[$key]); } - if (!$type->sealed()) { + if ($type->sealed()) { foreach ($value as $k => $v) { if (!array_key_exists($key, $children)) { $children[$key] = TreeNode::leaf(Shell::root(new MixedType(), $v), $v);
foreach ($value as $key => $value) {
foreach ($value as $k => $v) {
if (!array_key_exists($key, $children)) {

Check failure on line 78 in src/Mapper/Tree/Builder/ShapedArrayNodeBuilder.php

View workflow job for this annotation

GitHub Actions / Quality Assurance

Variable $key might not be defined.
$children[$key] = TreeNode::leaf(Shell::root(new MixedType(), $value), $value);
$children[$key] = TreeNode::leaf(Shell::root(new MixedType(), $v), $v);

Check failure on line 79 in src/Mapper/Tree/Builder/ShapedArrayNodeBuilder.php

View workflow job for this annotation

GitHub Actions / Quality Assurance

Variable $key might not be defined.
}
}
}
Expand Down

0 comments on commit 3b76729

Please sign in to comment.