Remove deprecated method

This commit is contained in:
2026-04-12 01:24:19 +03:00
parent 58c9b298db
commit 404e2089eb

View File

@@ -28,8 +28,8 @@ final class JwtService
$signer = new Sha256(); $signer = new Sha256();
$key = InMemory::plainText($secret); $key = InMemory::plainText($secret);
$this->jwtConfig = Configuration::forSymmetricSigner($signer, $key); $jwtConfig = Configuration::forSymmetricSigner($signer, $key);
$this->jwtConfig->setValidationConstraints( $this->jwtConfig = $jwtConfig->withValidationConstraints(
new SignedWith($signer, $key), new SignedWith($signer, $key),
new StrictValidAt(new class implements ClockInterface { new StrictValidAt(new class implements ClockInterface {
public function now(): DateTimeImmutable public function now(): DateTimeImmutable