phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

Uninitialized redeclared property on a class that parent initializes

Open jordisala1991 opened this issue 2 years ago • 2 comments
trafficstars

Fix for: https://github.com/phpstan/phpstan/issues/9864

First PR for me here, probably will be doing stuff wrong 😅

jordisala1991 avatar Sep 08 '23 14:09 jordisala1991

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.

phpstan-bot avatar Sep 08 '23 14:09 phpstan-bot

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?

jordisala1991 avatar Sep 08 '23 16:09 jordisala1991