Skip to content

prototype-better-error-handling #900

prototype-better-error-handling

prototype-better-error-handling #900

Triggered via push October 7, 2025 19:14
Status Failure
Total duration 1m 1s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

3 warnings
PHP 8.4: src/ErrorsException.php#L11
Escaped Mutant for Mutator "CastString": @@ @@ { private function __construct(public readonly Errors $errors) { - $this->message = (string) $errors; + $this->message = $errors; } public static function fromErrors(Errors $errors): self {
PHP 8.4: src/Errors.php#L102
Escaped Mutant for Mutator "UnwrapArrayMap": @@ @@ */ public function jsonSerialize(): array { - return array_map(static fn($errorWithPath) => ['path' => $errorWithPath['path'], 'error' => $errorWithPath['error']->jsonSerialize()], $this->errorsWithPath); + return $this->errorsWithPath; } private function mergePath(string $path, string $existingPath): string {
PHP 8.4: src/Errors.php#L24
Escaped Mutant for Mutator "CastString": @@ @@ private array $errorsWithPath = []; public function __toString() { - return implode(PHP_EOL, array_map(static fn($error) => $error['path'] . ': ' . (string) $error['error'], $this->errorsWithPath)); + return implode(PHP_EOL, array_map(static fn($error) => $error['path'] . ': ' . $error['error'], $this->errorsWithPath)); } public function addErrors(self $errors, string $path = ''): self {