PHP Deprecated Message on PHP 8.2

[ad_1]

On PHP 8.2, the plugin is throwing the following error message…

PHP Deprecated:  Creation of dynamic property managerForIcomoon\Scripts::$icomoon_file is deprecated in /wp-content/plugins/manager-for-icomoon/class/scripts.class.php on line 14

We have been patching this locally on sites we manage with the following change…

--- manager-for-icomoon/class/scripts.class.php   2024-11-13 16:36:54.821227783 -0500
+++ manager-for-icomoon-patched/class/scripts.class.php 2024-11-13 16:39:41.571228985 -0500
@@ -5,6 +5,7 @@
class Scripts {
private $icomoon_url ;
private $icomoon_path ;
+ private $icomoon_file ;

public function __construct(){

Perhaps you’ll have another way you’d want to address the deprecation, but at the very least we wanted to bring it to your attention 🙂

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer