10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6821b55 commit e5a7f83Copy full SHA for e5a7f83
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php
@@ -1225,8 +1225,8 @@ private function addExceptionsSection(ArrayNodeDefinition $rootNode)
1225
->scalarNode('status_code')
1226
->info('The status code of the response. Null to let Symfony decide.')
1227
->validate()
1228
- ->ifTrue(function ($v) { return !\in_array($v, range(100, 499)); })
1229
- ->thenInvalid('The log level is not valid. Pick one among between 100 et 599.')
+ ->ifTrue(function ($v) { return $v < 100 || $v > 599; })
+ ->thenInvalid('The log level is not valid. Pick a value between 100 and 599.')
1230
->end()
1231
->defaultNull()
1232
0 commit comments