Skip to content

[WIP] Add options to control method failure handling in the Router middleware #931

[WIP] Add options to control method failure handling in the Router middleware

[WIP] Add options to control method failure handling in the Router middleware #931

Triggered via pull request October 25, 2024 12:58
Status Failure
Total duration 44s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

1 error and 3 warnings
mutation / PHP 8.3-ubuntu-latest
Process completed with exit code 1.
mutation / PHP 8.3-ubuntu-latest: src/Middleware/Router.php#L64
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ } public function ignoreMethodFailureHandle() : self { - $new = clone $this; + $new = $this; $new->ignoreMethodFailureHandle = true; return $new; }
mutation / PHP 8.3-ubuntu-latest: src/Middleware/Router.php#L71
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ } public function withOptionsResponseFactory(MethodsResponseFactoryInterface $optionsResponseFactory) : self { - $new = clone $this; + $new = $this; $new->optionsResponseFactory = $optionsResponseFactory; return $new; }
mutation / PHP 8.3-ubuntu-latest: src/Middleware/Router.php#L78
Escaped Mutant for Mutator "CloneRemoval": --- Original +++ New @@ @@ } public function withNotAllowedResponseFactory(MethodsResponseFactoryInterface $notAllowedResponseFactory) : self { - $new = clone $this; + $new = $this; $new->notAllowedResponseFactory = $notAllowedResponseFactory; return $new; }