Skip to content

Report unused function expressions #12461

@dkarlovi

Description

@dkarlovi

Bug report

Unused function expressions not reported as unused

Code snippet that reproduces the problem

https://phpstan.org/r/5f3a4145-4aa4-4853-86cc-ecfcc9feff37

Expected output

Report an unused function expression the same way as the literal in the given example.

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

No response

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