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

array_column: proper support for private properties

Open janedbal opened this issue 3 months ago • 2 comments

Closes https://github.com/phpstan/phpstan/issues/13573

janedbal avatar Sep 24 '25 09:09 janedbal

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.

ondrejmirtes avatar Sep 25 '25 07:09 ondrejmirtes

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?

janedbal avatar Sep 25 '25 11:09 janedbal