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
18
18
/** @var bool */
19
19
private $ checkLogicalAndConstantCondition ;
20
20
21
- public function __construct (BooleanRuleHelper $ helper , bool $ checkLogicalAndConstantCondition )
21
+ public function __construct (BooleanRuleHelper $ helper , bool $ checkLogicalAndConstantCondition = false )
22
22
{
23
23
$ this ->helper = $ helper ;
24
24
$ this ->checkLogicalAndConstantCondition = $ checkLogicalAndConstantCondition ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class BooleanInBooleanOrRule implements \PHPStan\Rules\Rule
18
18
/** @var bool */
19
19
private $ checkLogicalOrConstantCondition ;
20
20
21
- public function __construct (BooleanRuleHelper $ helper , bool $ checkLogicalOrConstantCondition )
21
+ public function __construct (BooleanRuleHelper $ helper , bool $ checkLogicalOrConstantCondition = false )
22
22
{
23
23
$ this ->helper = $ helper ;
24
24
$ this ->checkLogicalOrConstantCondition = $ checkLogicalOrConstantCondition ;
You can’t perform that action at this time.
0 commit comments