Skip to content

Commit f234bf7

Browse files
authored
Fix expanding "… != <x>..<x + 1>" (#67)
* Revert "Fix || vs && operator precedence (#63)" This reverts commit 4133cfb. * Actually fix expanding "… != <x>..<x + 1>"
1 parent 8c75efd commit f234bf7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/FormulaConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ private static function expandAtom($atom)
134134
$chunk = "({$what} == {$from} || {$what} == {$to})";
135135
break;
136136
case '!=':
137-
$chunk = "({$what} != {$from}) && ({$what} == {$to})";
137+
$chunk = "{$what} != {$from} && {$what} != {$to}";
138138
break;
139139
}
140140
} else {

0 commit comments

Comments
 (0)