Skip to content

Conversation

@derrabus
Copy link
Member

@derrabus derrabus commented Jun 6, 2021

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

str_repeat() expects an integer, but the result of the division might be a float. PHP 8.1 will complain here, so I'm using an integer division instead.

@nicolas-grekas
Copy link
Member

Thank you @derrabus.

@nicolas-grekas nicolas-grekas merged commit bc43d4e into symfony:5.2 Jun 6, 2021
@derrabus derrabus deleted the bugfix/str-float-to-int branch June 6, 2021 08:40
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