@@ -111,7 +111,7 @@ |
||
| 111 | 111 | |
| 112 | 112 | public function getZipCodes(string $carrier, string $service, ?string $country = null): ZipCodeIterator |
| 113 | 113 | { |
| 114 | - $response = $this->client->call(Version::V2V1, $carrier, Method::ZIP_CODES, path: sprintf('%s/%s', $service, $country)); |
|
| 114 | + $response = $this->client->call(Version::V2V1, $carrier, Method::ZIP_CODES, path : sprintf('%s/%s', $service, $country)); |
|
| 115 | 115 | |
| 116 | 116 | return $this->zipCodeFactory->createIterator($carrier, $service, $country, $response); |
| 117 | 117 | } |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | private readonly string $type, |
| 22 | 22 | private readonly ?string $name, |
| 23 | 23 | private readonly ?ServiceOptionCollection $options = null, |
| 24 | - private readonly ?array $countries = null, |
|
| 25 | - private readonly ?array $codCountries = null, |
|
| 24 | + private readonly ? array $countries = null, |
|
| 25 | + private readonly ? array $codCountries = null, |
|
| 26 | 26 | ) { |
| 27 | 27 | } |
| 28 | 28 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | 'name' => $this->name, |
| 62 | 62 | 'options' => $this->options?->__toArray(), |
| 63 | 63 | 'countries' => $this->countries, |
| 64 | - 'codCountries' => $this->codCountries !== null ? array_map(static fn(CodCountry $country): array => $country->__toArray(), $this->codCountries) |
|
| 64 | + 'codCountries' => $this->codCountries !== null ? array_map(static fn(CodCountry $country) : array => $country->__toArray(), $this->codCountries) |
|
| 65 | 65 | : null, |
| 66 | 66 | ]; |
| 67 | 67 | } |