Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dragosprotung opened this issue Mar 3, 2022 · 1 comment · Fixed by #134
Closed

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

dragosprotung opened this issue Mar 3, 2022 · 1 comment · Fixed by #134

Comments

@dragosprotung
Copy link

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.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant