Skip to content

Assert::greaterThan(), Assert::lessThan() with arguments float and 0 will always evaluate to true #119

Closed
@dragosprotung

Description

@dragosprotung

Since version 1.1.0

function test(float $value): void
{
    Assert::greaterThan($value, 0);
}

reports Call to static method Webmozart\Assert\Assert::greaterThan() with float and 0 will always evaluate to true.

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