Skip to content

[Bug]: NumberFilter doesn't work #2229

@G4Zz0L1

Description

@G4Zz0L1

What happened?

Referencing issue #2030
The issue still persists; this time, it seems to have moved to the IsNumericFilter trait at line 9.

return ! is_null($value) ? ($this->validate($value) == false) : true;

The condition $this->validate($value) == false is not strictly typed, so for the value 0, it appears to break the NumberFilter.

How to reproduce the bug

No response

Package Version

No response

PHP Version

None

Laravel Version

No response

Alpine Version

No response

Theme

None

Notes

No response

Error Message

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions