Introduces treverse method #119
Annotations
4 warnings
🐘 Test on PHP 8.0:
src/Config.php#L193
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
// Continue to the next callback
}
if ($signal === SignalCode::STOP_TRAVERSAL) {
- return false;
+ return true;
// Stop traversal immediately
}
if ($signal === SignalCode::REMOVE_NODE) {
|
🐘 Test on PHP 8.0:
src/Config.php#L213
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
$continue = $this->traverseArray($current, $visitors, $path);
if (!$continue) {
// Stop the current iteration
- return false;
+ return true;
// Propagate the stop signal upwards
}
}
|
🐘 Test on PHP 8.1:
src/Config.php#L193
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
// Continue to the next callback
}
if ($signal === SignalCode::STOP_TRAVERSAL) {
- return false;
+ return true;
// Stop traversal immediately
}
if ($signal === SignalCode::REMOVE_NODE) {
|
🐘 Test on PHP 8.1:
src/Config.php#L213
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
$continue = $this->traverseArray($current, $visitors, $path);
if (!$continue) {
// Stop the current iteration
- return false;
+ return true;
// Propagate the stop signal upwards
}
}
|