phpstan-src
phpstan-src copied to clipboard
Uninitialized redeclared property on a class that parent initializes
trafficstars
Fix for: https://github.com/phpstan/phpstan/issues/9864
First PR for me here, probably will be doing stuff wrong 😅
You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x.
I took a deep look at the code but I barely understand what is happening. The getUninitializedProperties from ClassPropertiesNode seems to not take into account properties initialized on parents. Should I try to fix that, or the fix should be done somewhere else?