Skip to content

Commit ae75742

Browse files
committed
Fix import
1 parent 8ea62ad commit ae75742

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Metadata/MetadataFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
use Surfnet\SamlBundle\Signing\KeyPair;
2626
use Symfony\Component\Routing\RouterInterface;
2727
use Twig\Environment;
28+
use Surfnet\SamlBundle\Exception\RuntimeException;
2829

2930
class MetadataFactory
3031
{
@@ -115,7 +116,7 @@ private function getCertificateData(string $publicKeyFile): string
115116
preg_match(Certificate::CERTIFICATE_PATTERN, $certificate, $matches);
116117

117118
if (! isset($matches[1])) {
118-
throw new \RuntimeException(sprintf('Could not parse PEM certificate in %s', $publicKeyFile));
119+
throw new RuntimeException(sprintf('Could not parse PEM certificate in %s', $publicKeyFile));
119120
}
120121

121122
return str_replace([' ', "\n"], '', $matches[1]);

0 commit comments

Comments
 (0)