Skip to content

Commit 92dd7c8

Browse files
committed
correctly forwared insertparentheses for boolean types
1 parent 9b43003 commit 92dd7c8

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Types/PropertyTypes/BooleanType.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,25 +35,28 @@ interface BooleanType extends PropertyType
3535
* Create a conjunction between this expression and the given expression.
3636
*
3737
* @param BooleanType $right
38+
* @param bool $insertParentheses
3839
* @return AndOperator
3940
*/
40-
public function and(BooleanType $right): AndOperator;
41+
public function and(BooleanType $right, bool $insertParentheses = true): AndOperator;
4142

4243
/**
4344
* Create a disjunction between this expression and the given expression.
4445
*
4546
* @param BooleanType $right
47+
* @param bool $insertParentheses
4648
* @return OrOperator
4749
*/
48-
public function or(BooleanType $right): OrOperator;
50+
public function or(BooleanType $right, bool $insertParentheses = true): OrOperator;
4951

5052
/**
5153
* Perform an XOR with the given expression.
5254
*
5355
* @param BooleanType $right
56+
* @param bool $insertParentheses
5457
* @return XorOperator
5558
*/
56-
public function xor(BooleanType $right): XorOperator;
59+
public function xor(BooleanType $right, bool $insertParentheses = true): XorOperator;
5760

5861
/**
5962
* Negate this expression (using the NOT operator).

0 commit comments

Comments
 (0)