mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Proxy generator does not respect optional parameter type hint #5369
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 @iluuu1994 on GitHub (Dec 29, 2016).
Originally assigned to: @Ocramius on GitHub.
If a setter method has an optional parameter Doctrine will simply ignore it in the generated classes thus generating a warning:
The setter looks like this:
And here is the proxy:
This should either throw an error or properly copy the optional parameter to the proxy method definition.
@Ocramius commented on GitHub (Dec 29, 2016):
Please verify that you are running against doctrine/common 2.7.1
@iluuu1994 commented on GitHub (Dec 29, 2016):
Ok, I'm indeed not running
doctrine/common 2.7.1:This is what my
composer.jsonlooks like:It looks like I'm running the latest versions of those though. Should
doctrine/common 2.7.1be fetched by any of those yet?@Ocramius commented on GitHub (Dec 29, 2016):
Closing as duplicate of https://github.com/doctrine/doctrine2/issues/6176, https://github.com/doctrine/doctrine2/issues/6157, https://github.com/doctrine/doctrine2/pull/6156
@iluuu1994 commented on GitHub (Dec 29, 2016):
Cool, thank you @Ocramius for your very fast reply!