8000 [Intl] Fix legacy API by ro0NL · Pull Request #35313 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Intl] Fix legacy API #35313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

[Intl] Fix legacy API #35313

wants to merge 1 commit into from

Conversation

ro0NL
Copy link
Contributor
@ro0NL ro0NL commented Jan 12, 2020
Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #35309
License MIT
Doc PR symfony/symfony-docs#...

The legacy API can crash as of 4.4, due #33148 where we split some indices which affects both the old and new API.

in 4.4 e.g. [Names][en_US] doesnt exist anymore, hence the $region variable became useless (we force fake a fallback now).

The data is still available in [LocalizedNames][en_US], but let's be pragmatic for now and fix the BC break at least.

Comment on lines -50 to -51
} catch (MissingResourceException $e) {
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from the issue

// should return Austrian German does return German

so the fallback already happens, due this catch. This PR doesnt make sense 😅

@ro0NL ro0NL closed this Jan 12, 2020
@ro0NL ro0NL deleted the patch-3 branch January 12, 2020 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0