Skip to content

Commit

Permalink
Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Dec 15, 2023
1 parent 30699b9 commit d4f5ba3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SimpleItemsStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -339,11 +339,11 @@ private function getAllChildrenInternal(string|array $names, array &$result): vo
* @psalm-param ItemsIndexedByName $result
* @psalm-param-out ItemsIndexedByName $result
*/
private function fillChildrenRecursive(string $name, array &$result, array $names): void
private function fillChildrenRecursive(string $name, array &$result, array $startNames): void
{
$children = $this->children[$name] ?? [];
foreach ($children as $childName => $_childItem) {
if (in_array($childName, $names, strict: true)) {
if (in_array($childName, $startNames, strict: true)) {
continue;

Check warning on line 347 in src/SimpleItemsStorage.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.1-ubuntu-latest

Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ $children = $this->children[$name] ?? []; foreach ($children as $childName => $_childItem) { if (in_array($childName, $startNames, strict: true)) { - continue; + break; } $child = $this->get($childName); if ($child !== null) {

Check warning on line 347 in src/SimpleItemsStorage.php

View workflow job for this annotation

GitHub Actions / mutation / PHP 8.1-ubuntu-latest

Escaped Mutant for Mutator "Continue_": --- Original +++ New @@ @@ $children = $this->children[$name] ?? []; foreach ($children as $childName => $_childItem) { if (in_array($childName, $startNames, strict: true)) { - continue; + break; } $child = $this->get($childName); if ($child !== null) {
}

Expand All @@ -353,7 +353,7 @@ private function fillChildrenRecursive(string $name, array &$result, array $name
$result[$childName] = $child;
}

$this->fillChildrenRecursive($childName, $result, $names);
$this->fillChildrenRecursive($childName, $result, $startNames);
}
}

Expand Down

0 comments on commit d4f5ba3

Please sign in to comment.