[WIP] Add options to control method failure handling in the Router middleware #931
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;
}
|