@@ -44,7 +44,7 @@ |
||
44 | 44 | * |
45 | 45 | * @throws RuntimeException If no DOM document is available. |
46 | 46 | */ |
47 | - public static function findElement(DOMNode $ref, string $name): DOMElement|false |
|
47 | + public static function findElement(DOMNode $ref, string $name): DOMElement | false |
|
48 | 48 | { |
49 | 49 | $doc = $ref instanceof DOMDocument ? $ref : $ref->ownerDocument; |
50 | 50 | if ($doc === null) { |
@@ -54,7 +54,7 @@ |
||
54 | 54 | * |
55 | 55 | * @return string |
56 | 56 | */ |
57 | - public static function parseIssuer(array|string $issuer): string |
|
57 | + public static function parseIssuer(array | string $issuer): string |
|
58 | 58 | { |
59 | 59 | if (is_array($issuer)) { |
60 | 60 | $parts = []; |
@@ -134,7 +134,7 @@ |
||
134 | 134 | */ |
135 | 135 | public function decrypt(EncryptionAlgorithmInterface $decryptor): string |
136 | 136 | { |
137 | - $cipherValue = $this->getCipherData()->getCipherValue(); |
|
137 | + $cipherValue = $this->getCipherData()->getCipherValue(); |
|
138 | 138 | Assert::notNull( |
139 | 139 | $cipherValue, |
140 | 140 | 'Decrypting keys by reference is not supported.', |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | abstract class AbstractKey |
17 | 17 | { |
18 | 18 | /** @var OpenSSLAsymmetricKey|string */ |
19 | - protected OpenSSLAsymmetricKey|string $key_material; |
|
19 | + protected OpenSSLAsymmetricKey | string $key_material; |
|
20 | 20 | |
21 | 21 | |
22 | 22 | /** |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * |
25 | 25 | * @param OpenSSLAsymmetricKey|string $key The associated key material. |
26 | 26 | */ |
27 | - public function __construct(OpenSSLAsymmetricKey|string $key) |
|
27 | + public function __construct(OpenSSLAsymmetricKey | string $key) |
|
28 | 28 | { |
29 | 29 | $this->key_material = $key; |
30 | 30 | } |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * |
36 | 36 | * @return OpenSSLAsymmetricKey|string The key material. |
37 | 37 | */ |
38 | - public function get(): OpenSSLAsymmetricKey|string |
|
38 | + public function get(): OpenSSLAsymmetricKey | string |
|
39 | 39 | { |
40 | 40 | return $this->key_material; |
41 | 41 | } |
@@ -47,7 +47,7 @@ |
||
47 | 47 | * |
48 | 48 | * @param OpenSSLAsymmetricKey|string $key The PEM-encoded key material. |
49 | 49 | */ |
50 | - public function __construct(OpenSSLAsymmetricKey|string $key) |
|
50 | + public function __construct(OpenSSLAsymmetricKey | string $key) |
|
51 | 51 | { |
52 | 52 | parent::__construct(openssl_pkey_get_public($key)); |
53 | 53 | } |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * @param OpenSSLAsymmetricKey|string $key The PEM-encoded key material. |
20 | 20 | * @param string $passphrase An optional passphrase used to decrypt the given key material. |
21 | 21 | */ |
22 | - final public function __construct(OpenSSLAsymmetricKey|string $key, string $passphrase = "") |
|
22 | + final public function __construct(OpenSSLAsymmetricKey | string $key, string $passphrase = "") |
|
23 | 23 | { |
24 | 24 | parent::__construct(openssl_pkey_get_private($key, $passphrase)); |
25 | 25 | } |
@@ -55,7 +55,7 @@ |
||
55 | 55 | * @throws \SimpleSAML\XMLSecurity\Exception\InvalidArgumentException If the certificate cannot be read from $cert. |
56 | 56 | * @throws \SimpleSAML\XMLSecurity\Exception\RuntimeException If the certificate cannot be exported to PEM format. |
57 | 57 | */ |
58 | - final public function __construct(OpenSSLCertificate|string $cert) |
|
58 | + final public function __construct(OpenSSLCertificate | string $cert) |
|
59 | 59 | { |
60 | 60 | $resource = openssl_x509_read($cert); |
61 | 61 | if ($resource === false) { |