Skip to content
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

Deprecations in PHP8 #98

Open
robmachado opened this issue Apr 28, 2022 · 1 comment
Open

Deprecations in PHP8 #98

robmachado opened this issue Apr 28, 2022 · 1 comment

Comments

@robmachado
Copy link

I have many warnings like

Implicit conversion from float 3.015625 to int loses precision in vendor/neitanod/forceutf8/src/ForceUTF8/Encoding.php on line 206

using PHP8.1.5

One solution is REPLACE:

chr(ord($c1) / 64)

By

chr(intval(ord($c1) / 64))

In php8 chr function recives a integer and dont provide impicit convertion from float to integer

@cetetesoft
Copy link

There's a fork which addresses this issue:
https://github.com/RelistenNL/forceutf8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants