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.
1 parent c087092 commit ab76969Copy full SHA for ab76969
DependencyInjection/Configuration.php
@@ -651,7 +651,7 @@ public function getConfigTreeBuilder()
651
->thenInvalid('Service handlers can not have a formatter configured in the bundle, you must reconfigure the service itself instead')
652
->end()
653
->validate()
654
- ->ifTrue(function ($v) { return ('fingers_crossed' === $v['type'] || 'buffer' === $v['type'] || 'filter' === $v['type']) && 1 !== count($v['handler']); })
+ ->ifTrue(function ($v) { return ('fingers_crossed' === $v['type'] || 'buffer' === $v['type'] || 'filter' === $v['type']) && empty($v['handler']); })
655
->thenInvalid('The handler has to be specified to use a FingersCrossedHandler or BufferHandler or FilterHandler')
656
657
0 commit comments