8000 bug #43399 [HttpKernel] Fix incorrect invalid message and change rang… · symfony/symfony@21cc2b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 21cc2b6

Browse files
committed
bug #43399 [HttpKernel] Fix incorrect invalid message and change range to compare (JohJohan)
This PR was merged into the 5.4 branch. Discussion ---------- [HttpKernel] Fix incorrect invalid message and change range to compare | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | | License | MIT | Doc PR | Fix invlid config message and change range to two comparisons #42244 (comment) Commits ------- e5a7f83 [HttpKernel] Fix incorrect invalid message and change range to compare
2 parents 603ccac + e5a7f83 commit 21cc2b6

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 > 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