Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #54367 [DependencyInjection] Update an error message (javieregu…
…iluz) This PR was merged into the 7.1 branch. Discussion ---------- [DependencyInjection] Update an error message | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | - | License | MIT In a Symfony app I had the following: ```php #[Autowire('%env(kernel.project_dir)%')] private string $projectDir, ``` This should be instead: ```php #[Autowire('%kernel.project_dir%')] private string $projectDir, ``` In the console I saw this error message: <img width="822" alt="" src="https://github.com/symfony/symfony/assets/73419/c0303757-36bd-41ab-9ba1-ef912c9740df"> In my opinion, the error is not perfectly clear. That's why in this PR I propose some changes for your consideration. Thanks! Commits ------- 156e5ba [DependencyInjection] Update an error message
- Loading branch information