File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -708,6 +708,10 @@ public function getConfigTreeBuilder()
708
708
->ifTrue (function ($ v ) { return 'fingers_crossed ' === $ v ['type ' ] && !empty ($ v ['excluded_http_codes ' ]) && !empty ($ v ['excluded_404s ' ]); })
709
709
->thenInvalid ('You can not use excluded_http_codes together with excluded_404s in a FingersCrossedHandler ' )
710
710
->end ()
711
+ ->validate ()
712
+ ->ifTrue (function ($ v ) { return 'fingers_crossed ' !== $ v ['type ' ] && !empty ($ v ['excluded_http_codes ' ]) || !empty ($ v ['excluded_404s ' ]); })
713
+ ->thenInvalid ('You can only use excluded_http_codes/excluded_404s with a FingersCrossedHandler definition ' )
714
+ ->end ()
711
715
->validate ()
712
716
->ifTrue (function ($ v ) { return 'filter ' === $ v ['type ' ] && "DEBUG " !== $ v ['min_level ' ] && !empty ($ v ['accepted_levels ' ]); })
713
717
->thenInvalid ('You can not use min_level together with accepted_levels in a FilterHandler ' )
You can’t perform that action at this time.
0 commit comments