• Resolved peter8nss

    (@peter8nss)


    With WP_DEBUG turned on I’m getting error:

    PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in .../wp-content/plugins/mobile-menu/includes/plugin-settings/inc/scssphp/scss.inc.php on line 694; 
    PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in .../wp-content/plugins/mobile-menu/includes/plugin-settings/inc/scssphp/scss.inc.php on line 696; PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in .../wp-content/plugins/mobile-menu/includes/plugin-settings/inc/scssphp/scss.inc.php on line 699

    I’m using version 2.8.7 of the plugin and PHP 8.3.16.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Rui Guerreiro

    (@takanakui)

    Hi @peter8nss,

    Are you still experiencing this issue?

    I couldn’t replicate it on my side.

    Thread Starter peter8nss

    (@peter8nss)

    I’m haven’t seen it for a while and am having trouble replicating it. However, I can see the code that would cause this in function mobmenuscssc::reduce. Specifically:

    $fn = "op_${opName}_${ltype}_${rtype}";
    if (is_callable(array($this, $fn)) ||
    (($fn = "op_${ltype}_${rtype}") &&
    is_callable(array($this, $fn)) &&
    $passOp = true) ||
    (($fn = "op_${opName}") &&
    is_callable(array($this, $fn)) &&
    $genOp = true))

    All three seem to be deprecated in PHP8.2, e.g. “….${xxx}…” should be “…{$xxx}…”.

    Plugin Author Rui Guerreiro

    (@takanakui)

    Thanks. Will address this in the next update.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP deprecated error’ is closed to new replies.