Hi,
We scanned Woodmart theme (latest version) for PHP 8.3/8.5 compatibility:
Issue 1 — Indirect variable access (2 errors, present on all PHP versions):
File: inc/admin/modules/options/controls/group/class-group.php, lines 51 and 53
“Indirect access to variables, properties and methods will be evaluated strictly in left-to-right order since PHP 7.0.”
This may cause incorrect behavior in the theme options group controls.
Issue 2 — PHP 8.5 only: trigger_error() with E_USER_ERROR (1 warning):
File: inc/classes/class-registry.php, line 94
Passing E_USER_ERROR to trigger_error() is deprecated since PHP 8.4.
Issue 3 — PHP 8.5 only: Switch case semicolons (7 warnings):
File: inc/modules/sticky-toolbar.php, lines 186–194
Terminating a switch case statement with a semicolon is deprecated since PHP 8.5.
Request:
Could you please:
1. Add curly braces to clarify variable access in class-group.php lines 51 and 53
2. Replace trigger_error(E_USER_ERROR) with an exception in class-registry.php
3. Replace semicolons with colons in switch cases in sticky-toolbar.php
Thank you.