Handle null expiration in KnownSigningKey to set default value

This commit is contained in:
netkas 2025-03-25 12:59:03 -04:00
parent e4f3d50852
commit 4a7fbd9970
Signed by: netkas
GPG key ID: 4D8629441B76E4CC

View file

@ -44,6 +44,10 @@
{
$this->expires = $data['expires']->getTimestamp();
}
elseif($data['expires'] === null)
{
$this->expires = 0;
}
else
{
throw new InvalidArgumentException('Invalid expires value');