Title: PHP deprecated error
Last modified: April 8, 2025

---

# PHP deprecated error

 *  Resolved [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/php-deprecated-error-21/)
 * With WP_DEBUG turned on I’m getting error:
 *     ```wp-block-code
       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](https://wordpress.org/support/users/takanakui/)
 * (@takanakui)
 * [10 months, 1 week ago](https://wordpress.org/support/topic/php-deprecated-error-21/#post-18558777)
 * Hi [@peter8nss](https://wordpress.org/support/users/peter8nss/),
 * Are you still experiencing this issue?
 * I couldn’t replicate it on my side.
 *  Thread Starter [peter8nss](https://wordpress.org/support/users/peter8nss/)
 * (@peter8nss)
 * [10 months ago](https://wordpress.org/support/topic/php-deprecated-error-21/#post-18564020)
 * 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:
 *     ```wp-block-code
       $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](https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated),
   e.g. “….${xxx}…” should be “…{$xxx}…”.
 *  Plugin Author [Rui Guerreiro](https://wordpress.org/support/users/takanakui/)
 * (@takanakui)
 * [8 months, 3 weeks ago](https://wordpress.org/support/topic/php-deprecated-error-21/#post-18621623)
 * 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.

 * ![](https://ps.w.org/mobile-menu/assets/icon-128x128.png?rev=1890426)
 * [WP Mobile Menu - The Mobile-Friendly Responsive Menu](https://wordpress.org/plugins/mobile-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mobile-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mobile-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/mobile-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mobile-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mobile-menu/reviews/)

## Tags

 * [deprecated](https://wordpress.org/support/topic-tag/deprecated/)

 * 3 replies
 * 2 participants
 * Last reply from: [Rui Guerreiro](https://wordpress.org/support/users/takanakui/)
 * Last activity: [8 months, 3 weeks ago](https://wordpress.org/support/topic/php-deprecated-error-21/#post-18621623)
 * Status: resolved