Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpClient] Don't pass float tousleep()#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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
derrabus merged 1 commit into5.3frombugfix/http-client-usleep-precision
Aug 28, 2021

Conversation

@derrabus
Copy link
Member

QA
Branch?5.3
Bug fix?yes
New feature?no
Deprecations?no
TicketsPart of#41552
LicenseMIT
Doc PRN/A

When we pass a float value tousleep(), 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 reacted with eyes emoji

@derrabusderrabus changed the title[HttpClient] Don't pass float to usleep()[HttpClient] Don't pass float tousleep()Aug 28, 2021
@derrabusderrabus merged commit775306a into5.3Aug 28, 2021
@derrabusderrabus deleted the bugfix/http-client-usleep-precision branchAugust 28, 2021 16:41
@derrabusderrabus mentioned this pull requestAug 28, 2021
@fabpotfabpot mentioned this pull requestAug 30, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.3

Development

Successfully merging this pull request may close these issues.

4 participants

@derrabus@carsonbot@nicolas-grekas

[8]ページ先頭

©2009-2025 Movatter.jp