fix type check

This commit is contained in:
Yuri Kuznetsov
2024-03-05 10:06:38 +02:00
parent 3a1bc73692
commit 0504410ee9
@@ -120,6 +120,12 @@ class Rsa implements SignatureVerifier
'e' => new BigInteger('0x' . bin2hex(Util::base64UrlDecode($key->getE())), 16),
]);
return $publicKey->toString('PKCS8');
$pem = $publicKey->toString('PKCS8');
if (!is_string($pem)) {
throw new RuntimeException();
}
return $pem;
}
}