Skip to content

Assert::integerish() with floats/numeric will always evaluate to false #32

@dragosprotung

Description

@dragosprotung

Calling Assert::integerish(1.000) with a float or numeric the following error is reported:

Call to static method Webmozart\Assert\Assert::integerish() with float will always evaluate to false.

Assert::integerish(1.000); // OK
Assert::integerish(1.001); // not OK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions