@@ -239,7 +239,7 @@ |
||
| 239 | 239 | * |
| 240 | 240 | * @return ApiCountryJsonArray|ApiJsonArray|stdClass |
| 241 | 241 | */ |
| 242 | - private static function validateAndDecodeResponse(ResponseInterface $response, bool $asArray = false): array|stdClass |
|
| 242 | + private static function validateAndDecodeResponse(ResponseInterface $response, bool $asArray = false): array | stdClass |
|
| 243 | 243 | { |
| 244 | 244 | // If not 200 ok |
| 245 | 245 | if ($response->getStatusCode() !== 200) { |
@@ -31,7 +31,9 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * Country constructor. |
| 33 | 33 | */ |
| 34 | - public function __construct(private string $countryCode, private string $countryName, private string $dialingCode) {} |
|
| 34 | + public function __construct(private string $countryCode, private string $countryName, private string $dialingCode) |
|
| 35 | + { |
|
| 36 | +} |
|
| 35 | 37 | |
| 36 | 38 | /** |
| 37 | 39 | * {@inheritDoc} |
@@ -103,7 +103,7 @@ |
||
| 103 | 103 | /** |
| 104 | 104 | * @inheritDoc |
| 105 | 105 | */ |
| 106 | - public function key(): null|int|string |
|
| 106 | + public function key(): null | int | string |
|
| 107 | 107 | { |
| 108 | 108 | return key($this->byCountryCode); |
| 109 | 109 | } |