taxjar / taxjar-woocommerce-plugin

WooCommerce Sales Tax Plugin by TaxJar
http://www.taxjar.com/woocommerce-sales-tax-plugin/
GNU General Public License v2.0
30 stars 29 forks source link

Support for PHP 8.2 #251

Open devinsays opened 1 year ago

devinsays commented 1 year ago

We are getting the following notices in PHP 8.2:

PHP Deprecated:  Creation of dynamic property WC_Taxjar_Integration::$method_title is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-integration.php on line 36
PHP Deprecated:  Creation of dynamic property WC_Taxjar_Integration::$method_description is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-integration.php on line 37
PHP Deprecated:  Creation of dynamic property WC_Taxjar_Integration::$integration_uri is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-integration.php on line 38
PHP Deprecated:  Creation of dynamic property WC_Taxjar_Integration::$debug is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-integration.php on line 39
PHP Deprecated:  Creation of dynamic property WC_Taxjar_Download_Orders::$integration is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-download-orders.php on line 15
PHP Deprecated:  Creation of dynamic property WC_Taxjar_Download_Orders::$taxjar_download is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-download-orders.php on line 16
PHP Deprecated:  Creation of dynamic property WC_Taxjar_Integration::$download_orders is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-integration.php on line 40
PHP Deprecated:  Creation of dynamic property WC_Taxjar_Integration::$transaction_sync is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-integration.php on line 41
PHP Deprecated:  Creation of dynamic property WC_Taxjar_Integration::$customer_sync is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-integration.php on line 42
PHP Deprecated:  Creation of dynamic property WC_Taxjar_Integration::$module_loader is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-integration.php on line 43
PHP Deprecated:  Creation of dynamic property TaxJar_Tax_Calculation::$cache_time is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-taxjar-tax-calculation.php on line 24
PHP Deprecated:  Creation of dynamic property WC_Taxjar_Integration::$tax_calculations is deprecated in /wp-content/plugins/taxjar-simplified-taxes-for-woocommerce/includes/class-wc-taxjar-integration.php on line 47

Our host is requiring us to move to 8.2, so would love to get these notices resolved so it's easier to read our logs.

devinsays commented 8 months ago

We're still getting notices with the latest version of this plugin 4.2.1.

It's a quick fix, the properties just need to be declared.

Screenshot 2024-03-06 at 9 58 58 AM

We're manually patching each release, but would love to have this fixed.