-
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
DDC-4019: Proxy generator is not including PHP7 return type hints #4884
Comments
Didn't properly investigate, but I think the same might go for scalar type hints (doctrine/orm v2.4.8) |
I think this is fixed by https://github.com/doctrine/common/pull/376/files, but it's unfortunately only in 2.6.0 which can't be installed with docrine/orm=2.5.*. |
This is a major issue, that affects scalar type hints as well indeed. In its current state, the ORM just cannot work with entities using scalar type hints or return types. What prevents doctrine/common 2.6.0 from being used with doctrine/orm 2.5.* exactly? |
Time, and the lack of it.
|
I mean, is it just a matter of updating the If I force using 2.6.0 ( I can open a PR on the ORM and DBAL packages to modify their |
Yup, just a matter of doing that and preparing a new release ;-)
|
Thanks @Ocramius 👍 |
Jira issue originally created by user radmen:
Proxy generator skips return type hints which results in generating non-compatible proxies.
Entity example:
Generated proxy:
Currently only workaround for this is to remove return type hints definitions.
The text was updated successfully, but these errors were encountered: