Closed DaFa66 closed 2 years ago
In case you may be wondering, this fix removes these deprecated php errors in PHP v8.1+ when uploading images
[29-Aug-2022 15:45:38 Australia/Melbourne] PHP Deprecated: Implicit conversion from float 253.63636363636363 to int loses precision in D:\xampp\htdocs\freiza\engine\Image.php on line 199
[29-Aug-2022 15:45:38 Australia/Melbourne] PHP Deprecated: Implicit conversion from float 253.63636363636363 to int loses precision in D:\xampp\htdocs\freiza\engine\Image.php on line 220
[29-Aug-2022 15:45:39 Australia/Melbourne] PHP Deprecated: Implicit conversion from float 67.46666666666667 to int loses precision in D:\xampp\htdocs\freiza\engine\Image.php on line 199
[29-Aug-2022 15:45:39 Australia/Melbourne] PHP Deprecated: Implicit conversion from float 67.46666666666667 to int loses precision in D:\xampp\htdocs\freiza\engine\Image.php on line 220
Thank you!
Fix to remove Deprecated: Implicit conversion from float to int loses precision on $width and $height of image