File tree 2 files changed +2
-2
lines changed
Bundle/TwigBundle/DependencyInjection
Component/HttpKernel/EventListener
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ private function addHttpExceptionLogLevels(ArrayNodeDefinition $rootNode)
210
210
->always (function ($ v ) {
211
211
$ map = array ();
212
212
foreach ($ v as $ status => $ level ) {
213
- if (!(is_int ($ status ) && 100 <= $ status && $ status <= 599 )) {
213
+ if (!(is_int ($ status ) && $ status >= 100 && $ status <= 599 )) {
214
214
throw new InvalidConfigurationException (sprintf (
215
215
'The configured status code "%s" in twig.http_exception_log_levels is not a valid http status code. ' ,
216
216
$ status
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ protected function getExceptionLogLevel(\Exception $exception): string
104
104
$ statusCode = $ exception ->getStatusCode ();
105
105
if (isset ($ this ->httpStatusCodeLogLevel [$ statusCode ])) {
106
106
$ logLevel = $ this ->httpStatusCodeLogLevel [$ statusCode ];
107
- } elseif (400 <= $ statusCode && $ statusCode < 500 ) {
107
+ } elseif ($ statusCode >= 400 && $ statusCode < 500 ) {
108
108
$ logLevel = LogLevel::WARNING ;
109
109
}
110
110
}
You can’t perform that action at this time.
0 commit comments