We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d6474ee + ae78849 commit 038c50cCopy full SHA for 038c50c
src/DependencyInjection/Configuration.php
@@ -49,8 +49,12 @@ public function getConfigTreeBuilder(): TreeBuilder
49
->scalarNode('page_range')
50
->defaultValue(5)
51
->end()
52
- ->integerNode('page_limit')
+ ->scalarNode('page_limit')
53
->defaultNull()
54
+ ->validate()
55
+ ->ifTrue(static fn (mixed $v): bool => null !== $v && !\is_int($v))
56
+ ->thenInvalid('The page_limit must be an integer or null.')
57
+ ->end()
58
59
->booleanNode('convert_exception')
60
->defaultFalse()
0 commit comments