-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Allow to specify null
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FrameworkBundle] Allow to specify null
for exception mapping configuration values
#46956
Conversation
e9a61ed
to
5a52c79
Compare
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/exceptions.php
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Resources/config/schema/symfony-1.0.xsd
Outdated
Show resolved
Hide resolved
ee0f479
to
26d12aa
Compare
Rebased on the latest |
null
for exception mapping configuration valuesnull
for exception mapping configuration values
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Show resolved
Hide resolved
26d12aa
to
c1d5da3
Compare
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?
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
to
1de8f3a
Compare
Thank you @andrew-demb. |
null
should 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 in a2f27ad
[2]
symfony/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
Lines 1227 to 1228 in a2f27ad