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()
708708 ->ifTrue (function ($ v ) { return 'fingers_crossed ' === $ v ['type ' ] && !empty ($ v ['excluded_http_codes ' ]) && !empty ($ v ['excluded_404s ' ]); })
709709 ->thenInvalid ('You can not use excluded_http_codes together with excluded_404s in a FingersCrossedHandler ' )
710710 ->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 ()
711715 ->validate ()
712716 ->ifTrue (function ($ v ) { return 'filter ' === $ v ['type ' ] && "DEBUG " !== $ v ['min_level ' ] && !empty ($ v ['accepted_levels ' ]); })
713717 ->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