chore: Also wrap non-Valinor mapping related exceptions #56
Annotations
2 warnings
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3, actions/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Run vendor/bin/devtools infection --format=github:
src/Symfony/HttpKernel/Exception/JsonApiProblem.php#L54
Escaped Mutant for Mutator "UnwrapStrReplace":
--- Original
+++ New
@@ @@
$flattenedMessages = Messages::flattenFromNode($mappingError->node());
foreach ($flattenedMessages as $message) {
$node = $message->node();
- $errors[\str_replace(\sprintf('.%s', $node->name()), '', $node->path())] = $message->toString();
+ $errors[$node->path()] = $message->toString();
}
return new self($title, $detail, $statusCode, ['errors' => $errors]);
}
|
Loading