File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2528,6 +2528,7 @@ public function SimpleConditionalExpression(): AST\ExistsExpression|AST\BetweenE
25282528
25292529 // Handle arithmetic expressions enclosed in parentheses before an IN operator (e.g., (u.id + 1) IN (...))
25302530 if ($ token ->type === TokenType::T_OPEN_PARENTHESIS && $ peek !== null && $ peek ->type !== TokenType::T_SELECT ) {
2531+ if ($ token ->type === TokenType::T_OPEN_PARENTHESIS && $ peek ->type !== TokenType::T_SELECT ) {
25312532 $ tokenAfterParenthesis = $ this ->peekBeyondClosingParenthesis (false );
25322533
25332534 if ($ tokenAfterParenthesis !== null && $ tokenAfterParenthesis ->type === TokenType::T_NOT ) {
@@ -2541,6 +2542,7 @@ public function SimpleConditionalExpression(): AST\ExistsExpression|AST\BetweenE
25412542 $ token = $ tokenAfterParenthesis ;
25422543 }
25432544 }
2545+
25442546 if ($ token ->type === TokenType::T_IDENTIFIER || $ token ->type === TokenType::T_INPUT_PARAMETER || $ this ->isFunction ()) {
25452547 // Peek beyond the matching closing parenthesis.
25462548 $ beyond = $ this ->lexer ->peek ();
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class QueryBuilderInOperatorTest extends OrmFunctionalTestCase
1616 protected function setUp (): void
1717 {
1818 parent ::setUp ();
19+
1920 $ this ->setUpEntitySchema ([
2021 CmsUser::class,
2122 ]);
You can’t perform that action at this time.
0 commit comments