Skip to content

[Clock] usleep deprecation warning #48537

Closed
@victor-prdh

Description

@victor-prdh

Symfony version(s) affected

6.2.1

Description

Hello there,

As already seen with this pull request, the usleep() function trigger a deprecation warning with PHP8.1 when we pass a float value

Implicit conversion from float 999967.098236084 to int loses precision

How to reproduce

a full reproducer

Possible Solution

We just need to typecast the float value into an integer, i make the PR right now !

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions