Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpClient] Fix int conversion for GenericRetryStrategy with floated multiplier #50698

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
Jun 20, 2023

Conversation

francisbesset
Copy link
Contributor

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets
License MIT
Doc PR

When we use floated multiplier, we have a deprecated message from php 8.1:

Deprecated: Implicit conversion from float -288.99999999999994 to int loses precision
Deprecated: Implicit conversion from float 288.99999999999994 to int loses precision

This PR add a int conversion before use random_int() function.

@carsonbot carsonbot added this to the 5.4 milestone Jun 18, 2023
@OskarStark OskarStark changed the title [HttpClient] Fix int conversion for GenericRetryStrategy with floated multiplier [HttpClient] Fix int conversion for GenericRetryStrategy with floated multiplier Jun 19, 2023
@fabpot
Copy link
Member

fabpot commented Jun 20, 2023

Thank you @francisbesset.

@fabpot fabpot merged commit d979cfe into symfony:5.4 Jun 20, 2023
This was referenced Jun 26, 2023
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.

4 participants