Skip to content

loop over all elements of array with coalesce operator should remove null #13730

@staabm

Description

@staabm

Bug report

rewriting all array elements into a non-nullable value should turn it into a array without null-value

Code snippet that reproduces the problem

https://phpstan.org/r/4db76959-1d33-4cc1-9071-cf5f6264efb5

Expected output

no error

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