Skip to content
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

[9.x] Fix translation null replacement value deprecation warning #42207

Closed
wants to merge 2 commits into from
Closed

[9.x] Fix translation null replacement value deprecation warning #42207

wants to merge 2 commits into from

Conversation

nhedger
Copy link
Contributor

@nhedger nhedger commented May 1, 2022

Description

This PR fixes #42204 by treating a null replacement value as an empty string '', which mimics what is already happenning under the hood.

I have added the testNullReplacementValueIsTreatedAsEmptyString test to check for this case.

@driesvints
Copy link
Member

Thanks, but I've sent in this to 8.x instead: #42216. All bug fixes need to target 8.x

@driesvints driesvints closed this May 2, 2022
@nhedger nhedger deleted the fix/translation-null-replacement-value branch May 2, 2022 17:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation warning when trying to trans() with a null value in replacements
3 participants