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

[DependencyInjection] Escape % from parameter-like default values #50478

Merged
merged 1 commit into from May 30, 2023

Conversation

MatTheCat
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #50469
License MIT
Doc PR N/A

When string default values are autowired, they shouldn’t reference parameters.

This PR tries to address the issue by escaping them in the AutowirePass.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

(I updated the implementation to also handle arrays + make this a bit more generic)

@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit cc6c007 into symfony:5.4 May 30, 2023
9 of 11 checks passed
@MatTheCat MatTheCat deleted the ticket_50469 branch May 30, 2023 16:58
@fabpot fabpot mentioned this pull request May 30, 2023
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

3 participants