jonpreston
Forum Replies Created
-
Hi @mytrinh,
Thank you for the quick reply.
I can confirm that I am already running CURCY version 2.4.2 on PHP 8.3.32, and these deprecation notices are still actively generating in the logs.
The reason this might not show up on your test server is likely because
E_DEPRECATEDwarnings orWP_DEBUG_LOGare disabled in your test environment. PHP 8.1+ introduced a strict deprecation notice whenever a non-integer float (e.g.,23.52or17.50) is implicitly converted to an integer (such as inside bitwise operations, array offsets, or integer-type parameters).Here are the exact details from v2.4.2:
- File:
wp-content/plugins/woocommerce-multi-currency/frontend/price.php - Affected Lines:
1101,1103,1220, and1221 - Trigger: Price conversion math resulting in floating-point decimals being passed directly into code expecting an integer.
Could the development team please review those specific lines in
frontend/price.phpand wrap the float calculations in explicit casting orround()/intval()? This will resolve the warnings, preventdebug.logfile bloat, and ensure full PHP 8.3 compliance.Best regards,
Jon
- File: