mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
DDC-29: ProxyClassGenerator does not correctly override methods with type-hinted array or default values or pass by reference #36
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 2, 2009).
Jira issue originally created by user itoijala:
The ProxyClassGenerator does not take into account array type-hinting, default values or pass by reference.
Example:
Creates the follwing code:
and the following warning:
I am not sure about the consequences other than the warning when using E_STRICT.
The fix seems to be relatively simple:
Modify the _generateMethods method in ProxyClassGenerator
OLD:
NEW:
EDIT: forgot to add the fix for pass by reference.
EDIT2: fixed typo.
@doctrinebot commented on GitHub (Oct 2, 2009):
Comment created by romanb:
formatting
@doctrinebot commented on GitHub (Oct 3, 2009):
Issue was closed with resolution "Fixed"