Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1225,8 +1225,8 @@ private function addExceptionsSection(ArrayNodeDefinition $rootNode)
->scalarNode('status_code')
->info('The status code of the response. Null to let Symfony decide.')
->validate()
->ifTrue(function ($v) { return !\in_array($v, range(100, 499)); })
->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.')
->end()
->defaultNull()
->end()
Expand Down