diff --git a/src/Authorizer.php b/src/Authorizer.php index 2425d9a..8f93365 100644 --- a/src/Authorizer.php +++ b/src/Authorizer.php @@ -112,7 +112,7 @@ protected static function generateChecksum($allowedResource, $timeStart, $timeEn public static function getPublicKey() { if (!isset(self::$publicKeyPath)) { - throw new RuntimeException('Path to the authorizer public key is not set'); + throw new \RuntimeException('Path to the authorizer public key is not set'); } $publicKey = file_get_contents(self::$publicKeyPath); @@ -129,7 +129,7 @@ public static function getPublicKey() protected static function getPrivateKey() { if (!isset(self::$privateKeyPath)) { - throw new RuntimeException('Path to the authorizer private key is not set'); + throw new \RuntimeException('Path to the authorizer private key is not set'); } $privateKey = file_get_contents(self::$privateKeyPath); @@ -167,7 +167,7 @@ protected static function downloadSigningKey($url, $options = []) protected static function assertIsValidKey($type, $key, $path) { if (!preg_match('/^-----BEGIN (RSA |DSA )?' . strtoupper($type) . ' KEY-----/', $key)) { - throw new RuntimeException("Invalid $type key: $path"); + throw new \RuntimeException("Invalid $type key: $path"); } } }