You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I can tell, this will only affect ReflectionClass::newLazyGhost() specifically. Lazy Proxies are initialised by calling new Foo when the proxy is initialised, and the resetAs*() methods are themselves typically placed inside the __construct() method and will make use of some other method of the object to hydrate itself afterwards.
But newLazyGhost() requires a call to __construct() to work properly. Either that, or more reflection with $ref->getConstructor()?->invoke($obj).
As a bit of a follow-up to this issue, I am using strict-rules and according to them:
But it should be allowed in this specific context.
The text was updated successfully, but these errors were encountered: