8000 [HttpKernel] Allow all http status codes and change invalid message · symfony/symfony@359fe84 · GitHub
[go: up one dir, main page]

Skip to content

Commit 359fe84

Browse files
committed
[HttpKernel] Allow all http status codes and change invalid message
1 parent be60157 commit 359fe84

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 $v < 100 || $v > 499; })
1229-
->thenInvalid('The log level is not valid. Pick one among between 100 et 499.')
1228+
->ifTrue(function ($v) { return $v < 100 || $v > 599; })
1229+
->thenInvalid('The log level is not valid. Pick a value between 100 and 599.')
12301230
->end()
12311231
->defaultNull()
12321232
->end()

0 commit comments

Comments
 (0)
0