Handle null expiration in KnownSigningKey to set default value
This commit is contained in:
parent
e4f3d50852
commit
4a7fbd9970
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,10 @@
|
|||
{
|
||||
$this->expires = $data['expires']->getTimestamp();
|
||||
}
|
||||
elseif($data['expires'] === null)
|
||||
{
|
||||
$this->expires = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
throw new InvalidArgumentException('Invalid expires value');
|
||||
|
|
Loading…
Add table
Reference in a new issue