mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
[PR #11015] Make phpdoc accurate #12765
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/doctrine/orm/pull/11015
State: closed
Merged: Yes
When transforming these phpdoc types into native types, things break down. They are correct according to the EBNF, but in practice, there are so-called phase 2 optimizations that allow using
ConditionalPrimary,ConditionalFactorandConditionalTerminstances in places whereConditionalExpressionis used.Here is the relevant piece of code:
42af7cabb7/lib/Doctrine/ORM/Query/SqlWalker.php (L2057-L2104)Once this PR is merged up, we should be able to use phpcbf to convert phpdoc to native types on 3.0.x without that causing any problem.