@@ -94,7 +94,7 @@ |
||
| 94 | 94 | /** @inheritDoc */ |
| 95 | 95 | public function getZipCodes(string $carrier, string $service, ?string $country = null): ZipCodeIterator |
| 96 | 96 | { |
| 97 | - $response = $this->client->call(Version::V2V1, $carrier, Method::ZIP_CODES, path: sprintf('%s/%s', $service, $country)); |
|
| 97 | + $response = $this->client->call(Version::V2V1, $carrier, Method::ZIP_CODES, path : sprintf('%s/%s', $service, $country)); |
|
| 98 | 98 | |
| 99 | 99 | return $this->zipCodeFactory->createIterator($carrier, $service, $country, $response); |
| 100 | 100 | } |
@@ -61,7 +61,7 @@ |
||
| 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 | } |