phpstan-src
phpstan-src copied to clipboard
array_column: proper support for private properties
Closes https://github.com/phpstan/phpstan/issues/13573
I realize probably not, the returned array there has weird keys. But ObjectType::toArray() still has some useful logic that asks UniversalObjectCratesClassReflectionExtension and is also interested in whether the class is final etc. We should get inspired about that here.
We should get inspired about that here.
Can you be more specific please? Which part of current implementation is wrong and need to be adjusted?