Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[FrameworkBundle] Allow to specifynull for exception mapping configuration values#46956
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
[FrameworkBundle] Allow to specifynull for exception mapping configuration values#46956
Uh oh!
There was an error while loading.Please reload this page.
Conversation
e9a61ed to5a52c79Comparesrc/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/exceptions.phpShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
ee0f479 to26d12aaCompareandrew-demb commentedJul 28, 2022
Rebased on the latest |
null for exception mapping configuration valuesnull for exception mapping configuration valuesUh oh!
There was an error while loading.Please reload this page.
26d12aa toc1d5da3Compare| protected$exceptionsMapping; | ||
| /** | ||
| * @param array<class-string, array{log_level: string|null, status_code: int<100,599>|null}> $exceptionsMapping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Is it welcome to explicitly specify typing for mapping structure in Symfony codebase for now?
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
All good on my side, thanks.
bcd9033 to1de8f3aComparefabpot commentedSep 30, 2022
Thank you@andrew-demb. |
nullshould be allowed because it is stated as allowed in the configuration info [1][2]Marked as bugfix due to an existing mismatch between config description and behavior.
[1]
symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Lines 1219 to 1220 ina2f27ad
[2]
symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Lines 1227 to 1228 ina2f27ad