Skip to content
Triggered via pull request June 25, 2024 23:29
@timacdonaldtimacdonald
synchronize #16
ci
Status Failure
Total duration 1m 42s
Artifacts

main.yml

on: pull_request
Matrix: tests
Fit to window
Zoom out
Zoom in

Annotations

1 error and 3 warnings
Check
Process completed with exit code 1.
Check: src/Recorders/ValidationErrors.php#L69
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ return; } with($app['request'], function (Request $request) use ($record, $exception) { - // @phpstan-ignore argument.type - // Livewire can reuse the same request instance when polling or - // performing grouped requests. - $request->attributes->remove('pulse_validation_messages_recorded'); + $record(new ValidationExceptionOccurred($request, $exception)); }); });
Check: src/Recorders/ValidationErrors.php#L100
Escaped Mutant for Mutator "TrueValue": @@ @@ if ($this->shouldIgnore($path)) { return; } - $event->request->attributes->set('pulse_validation_messages_recorded', true); + $event->request->attributes->set('pulse_validation_messages_recorded', false); $path = $this->group($path); $this->parseValidationErrors($event)->each(fn(array $values) => $this->pulse->record('validation_error', json_encode([$event->request->method(), $path, $via, ...$values], flags: JSON_THROW_ON_ERROR))->count()); });
Check: src/Recorders/ValidationErrors.php#L122
Escaped Mutant for Mutator "Coalesce": @@ @@ if ($event instanceof ValidationExceptionOccurred) { return $this->parseValidationExceptionMessages($event->request, $event->exception); } - return $this->parseSessionValidationErrors($event->request, $event->response) ?? $this->parseJsonValidationErrors($event->request, $event->response) ?? $this->parseUnknownValidationErrors($event->request, $event->response) ?? collect([]); + return $this->parseJsonValidationErrors($event->request, $event->response) ?? $this->parseSessionValidationErrors($event->request, $event->response) ?? $this->parseUnknownValidationErrors($event->request, $event->response) ?? collect([]); } /** * Parse session validation errors.