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

[Translation] Fix constant domain resolution in PhpAstExtractor #53624

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

VincentLanglet
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #53356
License MIT

Similar to #53357

Closes #53356

@nicolas-grekas
Copy link
Member

Thank you @VincentLanglet.

@nicolas-grekas nicolas-grekas merged commit c3879f6 into symfony:6.4 Jan 29, 2024
This was referenced Jan 31, 2024
fabpot added a commit that referenced this pull request Feb 21, 2024
…s (rvanvelzen)

This PR was merged into the 6.4 branch.

Discussion
----------

[Translation] Fix extracting qualified `t()` function calls

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | Fix #53835
| License       | MIT

`t()` calls are generally qualified. The visitor used to look at the full name for the function call, but since #53624 this is replaced by the qualified name.

This PR adjusts the comparison to only look at the last part of the qualified name.

Commits
-------

eb5ac71 [Translation] Fix extracting qualified t() function calls
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.

None yet

5 participants