mirror of
https://github.com/doctrine/orm.git
synced 2026-04-29 09:23:20 +02:00
Proxy generator messed with PHP7 void return type hint #5342
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 @vpArth on GitHub (Dec 6, 2016).
Originally assigned to: @Ocramius on GitHub.
Proxy generator generate followed code:
returnstatement should be omitted ifvoidreturn typehint presented.It should be just
parent::setStatus($status);withoutreturnworkaround is not to use
voidreturn typehint@lcobucci commented on GitHub (Dec 6, 2016):
Which version of doctrine/common are you using? This was fixed on 2.7.x
On Tue, 6 Dec 2016, 19:16 Alexander Deider, notifications@github.com
wrote:
@Ocramius commented on GitHub (Dec 6, 2016):
@vpArth
voidis currently only supported if you run withdoctrine/common2.7.*. Upgrading the dependency here will be done soon.@vpArth commented on GitHub (Dec 6, 2016):
Glad to hear that.
I'm unhappily using doctrine as a part of symfony3.2, which uses
doctrine/orm@v2.5.5/doctrine/common@<2.7-dev@Ocramius commented on GitHub (Dec 6, 2016):
Closing as duplicate of #6156