Home Forums WoodMart support forum PHP 8.3/8.5 Compatibility: Indirect variable access and new deprecations

PHP 8.3/8.5 Compatibility: Indirect variable access and new deprecations

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #708793

    pavel.vutkow
    Participant

    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.

    #708932

    Artem Temos
    Keymaster
    Xtemos team

    Hello,

    Thank you for letting us know. We will check and fix these issues for our next theme update 8.4.

    Kind Regards

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)