Skip to content

Unused function call for array_map unlink #6687

@kkmuffme

Description

@kkmuffme

https://psalm.dev/r/33a00f8479

While technically unused, PHP throws notices if any of the files in the array don't exist (and therefore cannot be unlinked).
Most people would not use the return value here.

Since psalm does not complain about an unused return value of "unlink" it should not complain about unused return value when "unlink" is used in array_map*

*I assume there are other similar functions, for which this should apply too - if psalm does not complain about unused return value if the function is called standalone, it should not complain about unused return value if it's used in array_map

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions