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
I think the entire class/function/constant reflection where the reflectors depend on each other is very messy as it is: this totally requires an architectural change, rather than pushing more responsibility down the reflectors themselves.
I suggest that we let userland implement this for now, and later on we can go back to it and add a decorator for Reflector by default later, should it be interesting.
See PoC implementation that uses inheritance for decoration (but it could be done directly in the implementation): https://github.com/phpstan/phpstan-src/blob/master/src/Reflection/BetterReflection/Reflector/MemoizingClassReflector.php
The text was updated successfully, but these errors were encountered: