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 c8f18ee commit 25cd2f9Copy full SHA for 25cd2f9
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