File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -167,9 +167,9 @@ private function generateAlpha2ToAlpha3Mapping(ArrayAccessibleResourceBundle $me
167167 $ aliases = iterator_to_array ($ metadataBundle ['alias ' ]['language ' ]);
168168 $ alpha2ToAlpha3 = [];
169169
170- foreach ($ aliases as $ alias => $ language ) {
171- $ language = $ language ['replacement ' ];
172- if (2 === \strlen ($ language ) && 3 === \strlen ($ alias )) {
170+ foreach ($ aliases as $ alias => $ data ) {
171+ $ language = $ data ['replacement ' ];
172+ if (2 === \strlen ($ language ) && 3 === \strlen ($ alias ) && ' overlong ' === $ data [ ' reason ' ] ) {
173173 if (isset (self ::$ preferredAlpha2ToAlpha3Mapping [$ language ])) {
174174 // Validate to prevent typos
175175 if (!isset ($ aliases [self ::$ preferredAlpha2ToAlpha3Mapping [$ language ]])) {
You can’t perform that action at this time.
0 commit comments