PHP 8.1: Fix implicit conversion from float to int#387
PHP 8.1: Fix implicit conversion from float to int#387nicolaasuni merged 1 commit intotecnickcom:mainfrom
Conversation
|
I think the fix is done at a wrong place, the char should be always an integer. |
This is done that way in other places too. See: Line 4685 in cf8a66c |
|
Hmm, what |
|
This stack trace may help find the issue. |
|
Anyway, this pull request is a quick fix to remove the deprecation notice, while keeping the current behavior. |
Codecov Report
@@ Coverage Diff @@
## main #387 +/- ##
=======================================
Coverage 72.80% 72.80%
=======================================
Files 125 125
Lines 22959 22959
=======================================
Hits 16716 16716
Misses 6243 6243
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Please use intval instead of the int casting. |
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
456a714
6c36556 to
456a714
Compare
Done! |
Fixes PHP 8.1 deprecation notice: Implicit conversion from float to int loses precision.