-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix union type on QueryExpressionVisitorTest::testWalkComparison() #9294
Fix union type on QueryExpressionVisitorTest::testWalkComparison() #9294
Conversation
* @psalm-return list<array{ | ||
* 0: CriteriaComparison, | ||
* 1: QueryBuilder\Comparison|QueryBuilder\Func|string, | ||
* 2?: Parameter, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this different than the previous specification for this parameter? Previously it meant always present but possibly null, whereas here it would mean never null, but optional? If there is no difference then are the numbers necessary?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exactly. And if you look at the data provider you'll find that the declaration "never null, but optional" is more accurate.
Oh, and the closing >
was missing, so the previous type declaration was invalid and thus ignored.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving in case there is a difference
* Bump reusable workflows * Fix union type on QueryExpressionVisitorTest::testWalkComparison() (#9294) * Synchronize Psalm baseline (#9296) * Fix return type (#9295) Co-authored-by: Grégoire Paris <[email protected]>
* 2.11.x: Fix return type (doctrine#9295) Synchronize Psalm baseline (doctrine#9296) Fix union type on QueryExpressionVisitorTest::testWalkComparison() (doctrine#9294) Allow arithmetic expressions within IN operator (doctrine#9242) Bump reusable workflows
* 2.11.x: Leverage get_debug_type() (doctrine#9297) Fix return type (doctrine#9295) Synchronize Psalm baseline (doctrine#9296) Fix union type on QueryExpressionVisitorTest::testWalkComparison() (doctrine#9294) Allow arithmetic expressions within IN operator (doctrine#9242) Bump reusable workflows
Spotted while working on #9293