Skip to content

Deprecations in PHP8 #98

Description

@robmachado

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions