[PR #7296] Fix #7286: StringPrimary no longer accepts aggregate functions as argument #10410

Open
opened 2026-01-22 16:07:26 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: Yes


866418e40f (#6500) removed special-casing of aggregate functions.
This was mostly transparent for cases where isAggregateFunction() is used, but not in StringPrimary which doesn't use isAggregateFunction() to detect the function ahead.
Since these functions (still) have separate tokens, they're not recognized as T_IDENTIFIER in StringPrimary, thus not handled as generic FunctionDeclaration.

Fixes #7286.

**Original Pull Request:** https://github.com/doctrine/orm/pull/7296 **State:** closed **Merged:** Yes --- 866418e40f38e33f2c5dcf16ab9bccd3cdffa563 (#6500) removed special-casing of aggregate functions. This was mostly transparent for cases where `isAggregateFunction()` is used, but not in StringPrimary which doesn't use `isAggregateFunction()` to detect the function ahead. Since these functions (still) have separate tokens, they're not recognized as T_IDENTIFIER in StringPrimary, thus not handled as generic FunctionDeclaration. Fixes #7286.
admin added the pull-request label 2026-01-22 16:07:26 +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#10410