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] Update an error message #54367

Merged
merged 1 commit into from Mar 22, 2024

Conversation

javiereguiluz
Copy link
Member

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

In a Symfony app I had the following:

#[Autowire('%env(kernel.project_dir)%')] private string $projectDir,

This should be instead:

#[Autowire('%kernel.project_dir%')] private string $projectDir,

In the console I saw this error message:

In my opinion, the error is not perfectly clear. That's why in this PR I propose some changes for your consideration. Thanks!

@fabpot
Copy link
Member

fabpot commented Mar 22, 2024

Thank you @javiereguiluz.

@fabpot fabpot merged commit 292008b into symfony:7.1 Mar 22, 2024
5 of 10 checks passed
@javiereguiluz javiereguiluz deleted the error_message branch March 22, 2024 09:08
MatTheCat added a commit to MatTheCat/symfony that referenced this pull request Mar 22, 2024
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

4 participants