refactor middleware authentication failure handler #101
Annotations
6 warnings
|
src/Method/HttpBasic.php#L166
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
string $authToken
): array
{
- return array_map(static fn($value) => $value === '' ? null : $value, explode(':', base64_decode(substr($authToken, 6)), 2));
+ return array_map(static fn($value) => $value === '' ? null : $value, explode(':', base64_decode(substr($authToken, 5)), 2));
}
private function isBasicToken(
#[\SensitiveParameter]
|
|
src/Method/Composite.php#L28
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
{
foreach ($this->methods as $method) {
if (!$method instanceof AuthenticationMethodInterface) {
- throw new \RuntimeException('Authentication method must be an instance of ' . AuthenticationMethodInterface::class . '.');
+ throw new \RuntimeException('Authentication method must be an instance of ' . AuthenticationMethodInterface::class);
}
$identity = $method->authenticate($request);
if ($identity !== null) {
|
|
src/Method/Composite.php#L28
Escaped Mutant for Mutator "Concat":
@@ @@
{
foreach ($this->methods as $method) {
if (!$method instanceof AuthenticationMethodInterface) {
- throw new \RuntimeException('Authentication method must be an instance of ' . AuthenticationMethodInterface::class . '.');
+ throw new \RuntimeException('Authentication method must be an instance of ' . '.' . AuthenticationMethodInterface::class);
}
$identity = $method->authenticate($request);
if ($identity !== null) {
|
|
src/Method/Composite.php#L28
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
{
foreach ($this->methods as $method) {
if (!$method instanceof AuthenticationMethodInterface) {
- throw new \RuntimeException('Authentication method must be an instance of ' . AuthenticationMethodInterface::class . '.');
+ throw new \RuntimeException('Authentication method must be an instance of ' . '.');
}
$identity = $method->authenticate($request);
if ($identity !== null) {
|
|
src/Method/Composite.php#L28
Escaped Mutant for Mutator "ConcatOperandRemoval":
@@ @@
{
foreach ($this->methods as $method) {
if (!$method instanceof AuthenticationMethodInterface) {
- throw new \RuntimeException('Authentication method must be an instance of ' . AuthenticationMethodInterface::class . '.');
+ throw new \RuntimeException(AuthenticationMethodInterface::class . '.');
}
$identity = $method->authenticate($request);
if ($identity !== null) {
|
|
src/Method/Composite.php#L28
Escaped Mutant for Mutator "Concat":
@@ @@
{
foreach ($this->methods as $method) {
if (!$method instanceof AuthenticationMethodInterface) {
- throw new \RuntimeException('Authentication method must be an instance of ' . AuthenticationMethodInterface::class . '.');
+ throw new \RuntimeException(AuthenticationMethodInterface::class . 'Authentication method must be an instance of ' . '.');
}
$identity = $method->authenticate($request);
if ($identity !== null) {
|
The logs for this run have expired and are no longer available.
Loading