Skip to content

Commit dc29f53

Browse files
committed
PHPStan and CodingStandards Fix
1 parent 21ff4f0 commit dc29f53

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Query/Parser.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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();

tests/QueryBuilderInOperatorTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
]);

0 commit comments

Comments
 (0)