Skip to content

[Cache] Fix implicit float to int cast #42835

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
Sep 3, 2021

Conversation

derrabus
Copy link
Member

@derrabus derrabus commented Sep 1, 2021

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

Passing a float to a method that expects an integer triggers a deprecation on PHP 8.1 if that implicit float to int cast would mean a loss of precision. This PR fixes such an error in the cache component by making sure an integer is passed. This fixes an error in our 5.3 CI.

@fabpot
Copy link
Member

fabpot commented Sep 3, 2021

Thank you @derrabus.

@fabpot fabpot merged commit 1e2bf5d into symfony:4.4 Sep 3, 2021
This was referenced Sep 28, 2021
@derrabus derrabus deleted the bugfix/cache-float-cast branch December 3, 2021 22:50
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.

5 participants