Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 815f38a

Browse files
committed
review
1 parent 73a8929 commit 815f38a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2542,7 +2542,7 @@ private function addRateLimiterSection(ArrayNodeDefinition $rootNode, callable $
25422542
->end()
25432543
->end()
25442544
->validate()
2545-
->ifTrue(fn ($v) => !\in_array($v['policy'], ['no_limit', 'compound']) && !isset($v['limit']))
2545+
->ifTrue(static fn ($v) => !\in_array($v['policy'], ['no_limit', 'compound']) && !isset($v['limit']))
25462546
->thenInvalid('A limit must be provided when using a policy different than "compound" or "no_limit".')
25472547
->end()
25482548
->end()

0 commit comments

Comments
 (0)