Skip to content

Commit 60e47df

Browse files
committed
reveted RegionDataGenerator.php
1 parent 71a601e commit 60e47df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Intl/Data/Generator/RegionDataGenerator.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ private function generateAlpha2ToAlpha3Mapping(array $countries, ArrayAccessible
181181

182182
foreach ($aliases as $alias => $data) {
183183
$country = $data['replacement'];
184-
if (2 === \strlen($country) && 3 === \strlen($alias) && $data['reason'] === 'overlong') {
184+
if (2 === \strlen($country) && 3 === \strlen($alias) && 'overlong' === $data['reason']) {
185185
if (isset(self::PREFERRED_ALPHA2_TO_ALPHA3_MAPPING[$country])) {
186186
// Validate to prevent typos
187187
if (!isset($aliases[self::PREFERRED_ALPHA2_TO_ALPHA3_MAPPING[$country]])) {

0 commit comments

Comments
 (0)