Deprecated function: Implicit conversion from float to int loses precision

Created on 21 December 2022, over 2 years ago
Updated 23 May 2024, 11 months ago

Problem/Motivation

On upgrading PHP to version 8 from 7.4 we noticed the following issue notifications:

Deprecated function: Implicit conversion from float 10.5 to int loses precision in image_gd_adjustlevels() (line 1195 of .../contrib/imagecache_actions/coloractions/imagecache_coloractions.module).

Deprecated function: Implicit conversion from float 27.359375 to int loses precision in image_gd_coloroverlay() (line 413 of .../imagecache_actions/coloractions/imagecache_coloractions.module).

I've attached the patch file that addressed the issue for us.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024