Skip to content

Commit 9bfad65

Browse files
committed
Fix bug in fingers_crossed check
1 parent 97b9f2f commit 9bfad65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ public function getConfigTreeBuilder()
711711
->thenInvalid('You can not use excluded_http_codes together with excluded_404s in a FingersCrossedHandler')
712712
->end()
713713
->validate()
714-
->ifTrue(function ($v) { return 'fingers_crossed' !== $v['type'] && !empty($v['excluded_http_codes']) || !empty($v['excluded_404s']); })
714+
->ifTrue(function ($v) { return 'fingers_crossed' !== $v['type'] && (!empty($v['excluded_http_codes']) || !empty($v['excluded_404s'])); })
715715
->thenInvalid('You can only use excluded_http_codes/excluded_404s with a FingersCrossedHandler definition')
716716
->end()
717717
->validate()

0 commit comments

Comments
 (0)