Fix #82: Replace web-token/*
with web-token/jwt-library
and update min version of PHP to 8.1
#379
Annotations
2 warnings
mutation / PHP 8.3-ubuntu-latest:
src/TokenRepository.php#L54
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
}
return null;
}
- private function verifyToken(JWS $jws, JWK $jwk, int $signature = 0) : bool
+ private function verifyToken(JWS $jws, JWK $jwk, int $signature = -1) : bool
{
return (new JWSVerifier($this->algorithmManager))->verifyWithKey($jws, $jwk, $signature);
}
}
|
mutation / PHP 8.3-ubuntu-latest:
src/TokenRepository.php#L54
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
return null;
}
- private function verifyToken(JWS $jws, JWK $jwk, int $signature = 0) : bool
+ private function verifyToken(JWS $jws, JWK $jwk, int $signature = 1) : bool
{
return (new JWSVerifier($this->algorithmManager))->verifyWithKey($jws, $jwk, $signature);
}
}
|