Skip to content

Integer can become float when exceedes it's limits, PHPStan does not recognize it #8458

@VladaHejda

Description

@VladaHejda

In the following code snippet PHPStan thinks that only integer can be always returned, but it doesn't have to be always true - see the assertion.

https://phpstan.org/r/de19186a-6ccf-4e58-8ad4-1d489956e7f0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions