Skip to content

max()/min() should expect non-empty-array when called with a single arg #7239

Closed
@staabm

Description

@staabm

Feature request

https://phpstan.org/r/c16b4e78-df26-405b-b0cb-3fe4043c477c

it should report a error when max() min() is invoked with a empty array

https://3v4l.org/OE4CD
https://3v4l.org/vhUXS

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