When updating to PHP 8.1.28 or higher, deprecation notices regarding Dynamic Properties are displayed:
PHP Deprecated: Creation of dynamic property Storefront_Homepage_Contact_Section::$plugin_url is deprecated in /srv/htdocs/wp-content/plugins/storefront-homepage-contact-section/storefront-homepage-contact-section.php on line 85
PHP Deprecated: Creation of dynamic property Storefront_Homepage_Contact_Section::$plugin_path is deprecated in /srv/htdocs/wp-content/plugins/storefront-homepage-contact-section/storefront-homepage-contact-section.php on line 86
Isolating the problem (mark completed items with an [x]):
[x] I have deactivated other plugins and themes and confirmed this bug occurs when only WooCommerce + Storefront theme are active.
[x] I can reproduce this bug consistently using the steps below.
Describe the bug
When updating to PHP 8.1.28 or higher, deprecation notices regarding Dynamic Properties are displayed:
Isolating the problem (mark completed items with an [x]):
To Reproduce
Expected behavior
The plugin should be activated without any warnings.
Environment
WordPress 6.5.4 WooCommerce 8.9.3 PHP 8.2 (though it happens at 8.1.28 or higher)
Initially reported in 8254237-zen