@@ -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) { |