Skip to content

[Translation] Improve tests coverage #52746

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
Nov 29, 2023

Conversation

alexandre-daubois
Copy link
Member

Q A
Branch? 5.4
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT

Improves overall coverage on the Translation component.

}

return strtr($message, $parameters);
return $this->translator->trans($message, $parameters, null, $locale);
Copy link
Member Author

Choose a reason for hiding this comment

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

$this->translator cannot be anything else than a TranslatorInterface, as typed in the constructor.

Copy link
Member

@fabpot fabpot left a comment

Choose a reason for hiding this comment

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

Merging it in 6.4 as this is not a new feature and code changes.

@fabpot
Copy link
Member

fabpot commented Nov 29, 2023

Can you rebase on 6.4?

@fabpot fabpot modified the milestones: 5.4, 6.4 Nov 29, 2023
@fabpot
Copy link
Member

fabpot commented Nov 29, 2023

Thank you @alexandre-daubois.

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.

5 participants