File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/Rules/BooleansInConditions Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class BooleanInBooleanAndRule implements \PHPStan\Rules\Rule
1818 /** @var bool */
1919 private $ checkLogicalAndConstantCondition ;
2020
21- public function __construct (BooleanRuleHelper $ helper , bool $ checkLogicalAndConstantCondition )
21+ public function __construct (BooleanRuleHelper $ helper , bool $ checkLogicalAndConstantCondition = false )
2222 {
2323 $ this ->helper = $ helper ;
2424 $ this ->checkLogicalAndConstantCondition = $ checkLogicalAndConstantCondition ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class BooleanInBooleanOrRule implements \PHPStan\Rules\Rule
1818 /** @var bool */
1919 private $ checkLogicalOrConstantCondition ;
2020
21- public function __construct (BooleanRuleHelper $ helper , bool $ checkLogicalOrConstantCondition )
21+ public function __construct (BooleanRuleHelper $ helper , bool $ checkLogicalOrConstantCondition = false )
2222 {
2323 $ this ->helper = $ helper ;
2424 $ this ->checkLogicalOrConstantCondition = $ checkLogicalOrConstantCondition ;
You can’t perform that action at this time.
0 commit comments