Skip to content

max() function returns RuntimeException when the first value in the array is zero [0, 355] #81

@Jdelgad2

Description

@Jdelgad2

max() returns RuntimeException when array is all zeros [0,0,0] or when the first value in the array is zero [0, 355].
If the array is [355,0] it works.

This is the error I am getting .
RuntimeException RuntimeException: Argument 0 of max encountered a type mismatch in sequence: null, number
mtdowling->jmespath.php->src->FnDispatcher->fn_max()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions