Skip to content

PHP 8.5: Fix "float-string is not representable as an int" warning in BigInteger::toInt() #100

@julien-boudry

Description

@julien-boudry

Since PHP 8.5:

$bi = BigInteger::of('1405006117752879898543142606244511569936384000000000');

$bi->toInt();

Result in:

Warning: The float-string "1405006117752879898543142606244511569936384000000000" is not representable as an int, cast occurred

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