Skip to content

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