godaddy-wordpress / wc-plugin-framework

The official SkyVerge WooCommerce plugin framework
Other
137 stars 42 forks source link

Add support for dynamic properties to improve compatibility with newer PHP versions #659

Closed unfulvio-godaddy closed 7 months ago

unfulvio-godaddy commented 8 months ago

Adds a #[\AllowDynamicProperties] declaration at the beginning of all classes in the framework. This is a bit of a blanket solution to address certain deprecation notices related to PHP 8.2 but that may be triggered in frameworked plugins. Note that core WP adopted a similar strategy. Individual plugins may still need to address compatibility if they use dynamic properties in their own classes.

QA