-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Translation] Remove TranslatableMessage::__toString() method, use trans() or getMessage() instead
#61182
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
Conversation
nicolas-grekas
commented
Jul 21, 2025
| Q | A |
|---|---|
| Branch? | 8.0 |
| Bug fix? | no |
| New feature? | yes |
| Deprecations? | no |
| Issues | - |
| License | MIT |
TranslatableMessage::__toString() method, use trans() insteadTranslatableMessage::__toString() method, use trans() or getMessage() instead
9aa04d4 to
5d7fd4a
Compare
abd264e to
a2f31e4
Compare
…`trans()` or `getMessage()` instead
a2f31e4 to
6f68b45
Compare
| "php": ">=8.4", | ||
| "symfony/polyfill-mbstring": "^1.0", | ||
| "symfony/translation-contracts": "^2.5|^3.0" | ||
| "symfony/translation-contracts": "^3.6.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is currently no 3.6.1 tag of symfony/translation-contracts.
https://github.com/symfony/translation-contracts/tags
This lead to the error
Problem 1
- Root composer.json requires symfony/translation ^5.4 || ^6.4 || ^7.0 || ^8.0 -> satisfiable by symfony/translation[v8.0.0-BETA1].
- symfony/translation v8.0.0-BETA1 requires symfony/translation-contracts ^3.6.1 -> found symfony/translation-contracts[dev-main, 3.6.x-dev (alias of dev-main)] but it does not match your minimum-stability.
when trying to support 8.0 ; would it be possible to create a new tag or relax the condition ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolas-grekas why was this requirement changed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #62336
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@VincentLanglet 3.6.1 has been tagged