Add $key to callback #4255
Annotations
1 error and 1 warning
mutation / PHP 8.1-ubuntu-latest
Process completed with exit code 1.
|
mutation / PHP 8.1-ubuntu-latest:
src/Rule/EachHandler.php#L65
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$result->addError($error->getMessage(), $error->getParameters(), $error->getValuePath() === [] ? [$index] : [$index, ...$error->getValuePath()]);
}
}
- $context->setParameter(Each::PARAMETER_EACH_KEY, $originalEachKey);
+
return $result;
}
}
|