Fix #70: Deprecate CsrfMiddlware class and add CsrfTokenMiddleware instead #405
Annotations
2 warnings
Run roave infection.:
src/CsrfMiddleware.php#L65
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
}
public function withParameterName(string $name) : self
{
- $new = clone $this;
+ $new = $this;
$new->parameterName = $name;
return $new;
}
|
Run roave infection.:
src/CsrfMiddleware.php#L72
Escaped Mutant for Mutator "CloneRemoval":
--- Original
+++ New
@@ @@
}
public function withHeaderName(string $name) : self
{
- $new = clone $this;
+ $new = $this;
$new->headerName = $name;
return $new;
}
|
Loading