Skip to content

array_column over objects should not extract private properties #13573

@janedbal

Description

@janedbal

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/42094b7e-629a-4653-acb1-f253e42e75d5

Expected output

For private props, generic array should be inferred. If no __isset is present, empty array could be inferred.

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions