Skip to content

Possibly impure call to function array_map() in pure method - false positive #11100

@staabm

Description

@staabm

Bug report

for some reason PHPStan thinks this method contains a pure call.

Code snippet that reproduces the problem

https://phpstan.org/r/bb65d595-0b9c-472d-a2b7-0f11d49fcf09

Expected output

I think PHPStan should consider the array_map call pure, when a static callable is given which does not contain any impure-points

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