Skip to content

[HttpClient] Don't pass float to usleep() #42769

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

Merged
merged 1 commit into from
Aug 28, 2021

Conversation

derrabus
Copy link
Member

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets Part of #41552
License MIT
Doc PR N/A

When we pass a float value to usleep(), PHP 8.1 will trigger a deprecation warning:

Implicit conversion from float 999967.098236084 to int loses precision

This PR makes the cast explicit and fixes the failing test.

Signed-off-by: Alexander M. Turek <me@derrabus.de>
@carsonbot
Copy link

It looks like you unchecked the "Allow edits from maintainer" box. That is fine, but please note that if you have multiple commits, you'll need to squash your commits into one before this can be merged. Or, you can check the "Allow edits from maintainers" box and the maintainer can squash for you.

Cheers!

Carsonbot

@derrabus derrabus changed the title [HttpClient] Don't pass float to usleep() [HttpClient] Don't pass float to usleep() Aug 28, 2021
@derrabus derrabus merged commit 775306a into 5.3 Aug 28, 2021
@derrabus derrabus deleted the bugfix/http-client-usleep-precision branch August 28, 2021 16:41
@fabpot fabpot mentioned this pull request Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants