mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-3941: Compatibility issue with PHP 7.0 on proxy generation. #4818
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?
Originally created by @doctrinebot on GitHub (Oct 7, 2015).
Originally assigned to: @beberlei on GitHub.
Jira issue originally created by user naroga:
When using a return typehint on the entity getter/setter, the proxies are not generated with the typehint, which throws an error when called.
Example:
Creates the following
getIdon the Proxy:Which makes my application throw the following error:
{quote}
Compile Error: Declaration of Proxies*CG*\AppBundle\Entity\Carro\Marca::getId() must be compatible with AppBundle\Entity\Carro\Marca::getId(): int
{quote}
@doctrinebot commented on GitHub (Oct 7, 2015):
Comment created by naroga:
Apparently, there is already a PR that fixes this for 2.6.0: https://github.com/doctrine/common/pull/376
@doctrinebot commented on GitHub (Oct 7, 2015):
Comment created by naroga:
Fixed in https://github.com/doctrine/common/pull/376 (DCOM-294).
@doctrinebot commented on GitHub (Oct 7, 2015):
Issue was closed with resolution "Duplicate"