Skip to content

Assert::range() with arguments float, 0 and 1 will always evaluate to true #118

Closed
@dragosprotung

Description

@dragosprotung

Since version 1.1.0

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

reports Call to static method Webmozart\Assert\Assert::range() with arguments float, 0 and 1 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