Skip to content

Min/Max throw a fatal on empty error starting 8.0 #2092

@gastromis

Description

@gastromis

From manual page: https://php.net/function.max

Different from what the manual says "If an empty array is passed, then false will be returned and an E_WARNING error will be emitted.", PHP versions starting with 8.0 throw a fatal when passed an empty array. Same with the min() function.

image


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugDocumentation contains incorrect information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions