diff --git a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php index 4bf4c14dbc885..c902cf9da0e18 100644 --- a/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php @@ -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()