Skip to content

Commit be60157

Browse files
committed
[HttpKernel] Fix incorrect invalid message and change range to compare
1 parent 6821b55 commit be60157

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,8 +1225,8 @@ private function addExceptionsSection(ArrayNodeDefinition $rootNode)
12251225
->scalarNode('status_code')
12261226
->info('The status code of the response. Null to let Symfony decide.')
12271227
->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.')
1228+
->ifTrue(function ($v) { return $v < 100 || $v > 499; })
1229+
->thenInvalid('The log level is not valid. Pick one among between 100 et 499.')
12301230
->end()
12311231
->defaultNull()
12321232
->end()

0 commit comments

Comments
 (0)