ConnectThink / WP-SCSS

Wordpress Plugin that compiles sass using scssphp
http://wordpress.org/plugins/wp-scss/
248 stars 76 forks source link

Deprecation notices with PHP 8.2 #250

Open cfoster-CfC opened 3 months ago

cfoster-CfC commented 3 months ago

Hi, I’m getting a number of deprecation notices after updating to PHP 8.2, along with some “Can’t modify header information” errors and white screens here and there. Are there plans to make the plugin 8.2 compatible? I have the latest version of both WP and all my plugins.

Deprecated: Creation of dynamic property Wp_Scss::$scss_dir is deprecated in /home/site/wwwroot/wp-content/plugins/wp-scss/class/class-wp-scss.php on line 22

Deprecated: Creation of dynamic property Wp_Scss::$css_dir is deprecated in /home/site/wwwroot/wp-content/plugins/wp-scss/class/class-wp-scss.php on line 23

Deprecated: Creation of dynamic property Wp_Scss::$compile_errors is deprecated in /home/site/wwwroot/wp-content/plugins/wp-scss/class/class-wp-scss.php on line 24

Deprecated: Creation of dynamic property Wp_Scss::$scssc is deprecated in /home/site/wwwroot/wp-content/plugins/wp-scss/class/class-wp-scss.php on line 25

Deprecated: Creation of dynamic property Wp_Scss::$cache is deprecated in /home/site/wwwroot/wp-content/plugins/wp-scss/class/class-wp-scss.php on line 27

Deprecated: Creation of dynamic property Wp_Scss::$sourcemaps is deprecated in /home/site/wwwroot/wp-content/plugins/wp-scss/class/class-wp-scss.php on line 32

Deprecated: Creation of dynamic property Wp_Scss::$cache_file is deprecated in /home/site/wwwroot/wp-content/plugins/wp-scss/class/class-wp-scss.php on line 105
woakley commented 2 months ago

This is updated here on github but not in the version that wordpress uses. Just copy the file from here: https://github.com/ConnectThink/WP-SCSS/blob/master/class/class-wp-scss.php