@@ -20,7 +20,7 @@ |
||
20 | 20 | |
21 | 21 | abstract class AbstractKey |
22 | 22 | { |
23 | - protected OpenSSLAsymmetricKey|null $key = null; |
|
23 | + protected OpenSSLAsymmetricKey | null $key = null; |
|
24 | 24 | |
25 | 25 | public function __construct( |
26 | 26 | protected readonly string $file |
@@ -24,7 +24,7 @@ |
||
24 | 24 | public function __construct( |
25 | 25 | private readonly PrivateKey $privateKey, |
26 | 26 | private readonly PublicKey $publicKey, |
27 | - private readonly string|int $algorithm = OPENSSL_ALGO_SHA1 |
|
27 | + private readonly string | int $algorithm = OPENSSL_ALGO_SHA1 |
|
28 | 28 | ) { |
29 | 29 | } |
30 | 30 |
@@ -25,7 +25,7 @@ |
||
25 | 25 | private readonly MerchantNumber $merchantNumber, |
26 | 26 | private readonly DepositFlag $depositFlag, |
27 | 27 | private readonly string $gateway, |
28 | - private readonly ResponseUrl|null $responseUrl = null |
|
28 | + private readonly ResponseUrl | null $responseUrl = null |
|
29 | 29 | ) { |
30 | 30 | } |
31 | 31 |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * @throws InvalidArgumentException |
40 | 40 | */ |
41 | -function assertMaxLength(string|int|float $value, int $length, string $name): void |
|
41 | +function assertMaxLength(string | int | float $value, int $length, string $name): void |
|
42 | 42 | { |
43 | 43 | $strlen = strlen((string)$value); |
44 | 44 | if ($strlen > $length) { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * @throws InvalidArgumentException |
51 | 51 | */ |
52 | -function assertLength(string|int|float $value, int $length, string $name): void |
|
52 | +function assertLength(string | int | float $value, int $length, string $name): void |
|
53 | 53 | { |
54 | 54 | $strlen = strlen((string)$value); |
55 | 55 | if ($strlen !== $length) { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | |
20 | 20 | class GPWebPayResultException extends GPWebPayException |
21 | 21 | { |
22 | - private string|null $resultText; |
|
22 | + private string | null $resultText; |
|
23 | 23 | private ResponseError $error; |
24 | 24 | |
25 | 25 | public function __construct( |