Skip to content

ORM DateFilter throw fatal error when user submit unexpected query params. #3858

Description

@vuongxuongminh

API Platform version(s) affected: 2.5.7

Description

Currently when user submit unexpected query param type like: &date[after][][][]=1 fatal error will be throw because it's wrong type when pass it to andWhere method.

How to reproduce

Submit query param date[after][][][]=1

Possible Solution

Allow mixed type of value arg at DateFilter#L131 and change exception type to \Throwable at DateFilter#L136.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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