Skip to content

Fix #33427 #33437

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

Merged
merged 1 commit into from
Sep 3, 2019
Merged

Fix #33427 #33437

merged 1 commit into from
Sep 3, 2019

Conversation

sylfabre
Copy link
Contributor

@sylfabre sylfabre commented Sep 2, 2019

Q A
Branch? 4.3
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #33427
License MIT
Doc PR none

Fix #33427 by checking if the message returned by the intl-icu catalog is empty. If yes then the translator returns an empty string instead of running formatIntl() which uses the constructor of MessageFormatter which throws an exception with empty strings.

@fabpot
Copy link
Member

fabpot commented Sep 3, 2019

Thank you @sylfabre.

fabpot added a commit that referenced this pull request Sep 3, 2019
This PR was merged into the 4.3 branch.

Discussion
----------

Fix #33427

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #33427
| License       | MIT
| Doc PR        | none

Fix #33427 by checking if the message returned by the intl-icu catalog is empty. If yes then the translator returns an empty string instead of running `formatIntl()` which uses the constructor of `MessageFormatter` which throws an exception with empty strings.

Commits
-------

414dceb Fix #33427
@fabpot fabpot merged commit 414dceb into symfony:4.3 Sep 3, 2019
@nicolas-grekas nicolas-grekas added this to the 4.3 milestone Sep 3, 2019
@fabpot fabpot mentioned this pull request Oct 7, 2019
@sylfabre sylfabre deleted the bug_33427 branch September 25, 2020 13:15
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.

7 participants