Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #19584 [DependencyInjection] Improve ParameterNotFoundExcepti…
…on when accessing a nested parameter (wouterj) This PR was squashed before being merged into the 3.2-dev branch (closes #19584). Discussion ---------- [DependencyInjection] Improve ParameterNotFoundException when accessing a nested parameter | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | n/a A common problem under beginners is to think that the dot notation is used to access nested arrays saved in parameters (*common here means someone asks help for this problem at least once a week on IRC*). Adding a little extra detail to the exception message and a working alternative should help pointing these people in the right direction before spending time debugging this. It's quite late in the night over here, so the wording of the exception message probably isn't great. I'm happy to accept better suggestions 😃 Commits ------- df70f06 [DependencyInjection] Improve ParameterNotFoundException when accessing a nested parameter
- Loading branch information
Showing
3 changed files
with
45 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters