Skip to content

Incorrect array type after array_column with second parameter null #6497

Closed
phpstan/phpstan-src
#970
@tjveldhuizen

Description

@tjveldhuizen

Bug report

PHPStan does not discover the correct type after array_column with null as second parameter

Code snippet that reproduces the problem

https://phpstan.org/r/993496ae-b291-4bad-9e90-eacff7524cf1

Expected output

No error / dumped type array<string, array{foo: string, bar: int}>

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

Absolutely! Keep up the good work and fast responses!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions