Commit fc4825e
committed
bug symfony#58409 [Translation] Fix extracting of message from ->trans() method with named params (tugmaks)
This PR was merged into the 6.4 branch.
Discussion
----------
[Translation] Fix extracting of message from ->trans() method with named params
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | No
| Deprecations? | No
| Issues | Will be explained in this PR
| License | MIT
Hi, this PR fixes a problem of an extracting translations from ```\Symfony\Contracts\Translation\TranslatorInterface::trans()``` method
As you can see the first argument is named as `id`, but not `message`, as expected in Visitor
Commits
-------
800829a Fix extracting of message from ->trans() method with named paramsFile tree
2 files changed
+4
-4
lines changed- src/Symfony/Component/Translation
- Extractor/Visitor
- Tests/Fixtures/extractor-ast
2 files changed
+4
-4
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
| 49 | + | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments