Title: PHP Deprecated Using ${var} in strings is deprecated, use {$var} instead
Last modified: December 19, 2023

---

# PHP Deprecated Using ${var} in strings is deprecated, use {$var} instead

 *  [valesilve](https://wordpress.org/support/users/valesilve/)
 * (@valesilve)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-deprecated-using-var-in-strings-is-deprecated-use-var-instead/)
 * Hi,
 * thank you for your great work. I would like to report an error:
   PHP Deprecated:
   Using ${var} in strings is deprecated, use {$var} instead plugins/woocommerce-
   paypal-payments/modules/ppcp-button/src/Assets/SmartButton.php on line 1616.The
   same error is on lines: 1441, 1442,1457,1578,1585,1609,1616.Great regard,v.

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

 *  Plugin Support [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/)
 * (@inpsydekrystian)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/php-deprecated-using-var-in-strings-is-deprecated-use-var-instead/#post-17288407)
 * Hello [@valesilve](https://wordpress.org/support/users/valesilve/)
   We are indeed
   aware of this PHP 8.2 deprecations. These lines relate to the Pay Later messaging
   render hooks.
 * It’s important to note that deprecation notices, such as the one you’re encountering,
   generally do not cause operational problems, especially if front-end debugging
   is not enabled on your site. These notices are more informational, indicating
   that certain code practices should be updated in future versions for better compatibility
   and best practices.
 * However, we want to assure you that the plugin is fully supported and has been
   thoroughly tested with PHP versions ranging from 7.2 to 8.1. While we haven’t
   completed extensive testing on PHP 8.2+, preliminary checks suggest that the 
   plugin should operate correctly on these newer versions as well. Improving compatibility
   with PHP 8.2 is on our development roadmap, and we aim to address these deprecation
   notices in upcoming updates.
 * Thank you for your feedback! 
   In the meantime, if you encounter any functional
   issues or have further concerns, please do not hesitate to contact us. Kind regards,
   Krystian
    -  This reply was modified 2 years, 4 months ago by [Krystian Syde](https://wordpress.org/support/users/inpsydekrystian/).
 *  [Mikhail Alferov](https://wordpress.org/support/users/malferov/)
 * (@malferov)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-using-var-in-strings-is-deprecated-use-var-instead/#post-17382390)
 * This notice is still in log files:
 * `PHP Deprecated: Using ${var} in strings is deprecated, use {$var} instead in…
   docs/wp-content/plugins/woocommerce-paypal-payments/modules/ppcp-button/src/Assets/
   SmartButton.php on line 1450`

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

The topic ‘PHP Deprecated Using ${var} in strings is deprecated, use {$var} instead’
is closed to new replies.

 * ![](https://ps.w.org/woocommerce-paypal-payments/assets/icon-256x256.png?rev=
   3234615)
 * [WooCommerce PayPal Payments](https://wordpress.org/plugins/woocommerce-paypal-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-paypal-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-paypal-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-paypal-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-paypal-payments/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Mikhail Alferov](https://wordpress.org/support/users/malferov/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-using-var-in-strings-is-deprecated-use-var-instead/#post-17382390)
 * Status: not resolved