[PR #11298] Fix sqlWalker::walkSimpleArithmeticExpression phpdoc #12925

Closed
opened 2026-01-22 16:15:37 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/11298

State: closed
Merged: Yes


Compatibility with ORM 2 & 3 is not always easy with the different phpdoc/typehint on SQLWalker (and static analysis).

walkSimpleArithmeticExpression phpdoc only accepts SimpleArithmeticExpression on 2.x but in fact support a wilder type Node|string ; and the type was updated on 3.x branch.

I took the typehint from the 3.x branch 2a250b5814/src/Query/SqlWalker.php (L2127) to update the phpdoc on 2.x branch.

This also fixes 7 baselines entries

**Original Pull Request:** https://github.com/doctrine/orm/pull/11298 **State:** closed **Merged:** Yes --- Compatibility with ORM 2 & 3 is not always easy with the different phpdoc/typehint on SQLWalker (and static analysis). `walkSimpleArithmeticExpression` phpdoc only accepts `SimpleArithmeticExpression` on 2.x but in fact support a wilder type Node|string ; and the type was updated on 3.x branch. I took the typehint from the 3.x branch https://github.com/doctrine/orm/blob/2a250b5814de192a23438c0a43e15da7e77890a7/src/Query/SqlWalker.php#L2127 to update the phpdoc on 2.x branch. This also fixes 7 baselines entries
admin added the pull-request label 2026-01-22 16:15:37 +01:00
admin closed this issue 2026-01-22 16:15:37 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12925