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
Due to PHPStan design that we inherit here, we can only work with current context. That means PHPStan does not know about all use cases, just about current class. E.g. dead public methods cannot be reported etc. This might change in the future, but so far there is nothing we can do about it.
Indeed, thanks for checking.
It's better to avoid property juggling, protected properties and inheritance in general. They allow such leaky design that is hard to process and error prone.
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.org/demo/d322d190-3178-4bf7-9877-921b8ccb698b
Responsible rules
CompleteDynamicPropertiesRector
Expected Behavior
Should try to match the visibility of the other class
The text was updated successfully, but these errors were encountered: