-
-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error with static return type #760
Comments
A couple things:
This cannot be fixed in the library, as there's no declaration (in PHP) that tells us if the same instance, or a new instance, will be returned by My recommendation is to try with ghost objects, linked above. |
Thank you for detailed answer! |
@mrsuh switching proxy type is feasible within the That would certainly be my recommendation though: I designed ghost objects much after I've designed the initial value-holder design, which got adopted by Now the path would be to migrate to the newer/better proxy type, but at the cost of added complexity and potential BC issues (the interface on the proxies changes) |
Hi!
I didn't find issues with my problem and decide to ask you about error with
: static
return type.How to reproduce
Output
Any ideas how to avoid this error?
The text was updated successfully, but these errors were encountered: