• Resolved Patrick Mackaaij

    (@mackaaij)


    I was trying to update PHP to 8.2 and received the following warnings for EU VAT for WooCommerce:

    1. Deprecated: Creation of dynamic property Alg_WC_EU_VAT_Core::$is_wc_version_below_3_0_0 is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/includes/class-alg-wc-eu-vat-core.php on line 27
    2. Deprecated: Creation of dynamic property Alg_WC_EU_VAT_Core::$required_in_countries is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/includes/class-alg-wc-eu-vat-core.php on line 78
    3. Deprecated: Creation of dynamic property Alg_WC_EU_VAT_Core::$show_in_countries is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/includes/class-alg-wc-eu-vat-core.php on line 79
    4. Deprecated: Creation of dynamic property Alg_WC_EU_VAT::$core is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/eu-vat-for-woocommerce-pro.php on line 124

    This is the related PHP 8.2 info I could find:

    https://php.watch/versions/8.2/dynamic-properties-deprecated

    Hope you can fix this in a next update!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Omar AlDabbas

    (@omardabbas)

    Hey @mackaaij

    Thanks for reporting this, got fixed in 2.9.1, please test and let us know if you still get any error messages.

    Omar

    Thread Starter Patrick Mackaaij

    (@mackaaij)

    Thanks Omar, I updated the plugin and the errors messages are gone! 👍

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Awesome, thanks for the feedback @mackaaij

    If you enjoy the plugin, it would be great if you can leave us a review please.

    Thanks,

    Omar

    Thread Starter Patrick Mackaaij

    (@mackaaij)

    Already did the first time you fixed an issue! 🙂

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Thanks a lot, forgot about it 🙂

    Thread Starter Patrick Mackaaij

    (@mackaaij)

    Hi Omar!

    With version 2.9.2 active on a testing site, I just noticed some more PHP 8.2 deprecated-issues. Maybe these are not new but show up due to a difference in WordPress error logging. Here they are:

    Deprecated: Creation of dynamic property Alg_WC_EU_VAT::$settings is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/eu-vat-for-woocommerce-pro.php on line 140

    Deprecated: Creation of dynamic property Alg_WC_EU_VAT_Settings_General::$id is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/includes/settings/class-alg-wc-eu-vat-settings-general.php on line 23

    Deprecated: Creation of dynamic property Alg_WC_EU_VAT_Settings_General::$desc is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/includes/settings/class-alg-wc-eu-vat-settings-general.php on line 24

    Deprecated: Creation of dynamic property Alg_WC_EU_VAT_Settings_Validation::$id is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/includes/settings/class-alg-wc-eu-vat-settings-validation.php on line 23

    Deprecated: Creation of dynamic property Alg_WC_EU_VAT_Settings_Validation::$desc is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/includes/settings/class-alg-wc-eu-vat-settings-validation.php on line 24

    Deprecated: Creation of dynamic property Alg_WC_EU_VAT_Settings_Admin::$id is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/includes/settings/class-alg-wc-eu-vat-settings-admin.php on line 23

    Deprecated: Creation of dynamic property Alg_WC_EU_VAT_Settings_Admin::$desc is deprecated in /wp-content/plugins/eu-vat-for-woocommerce-pro/includes/settings/class-alg-wc-eu-vat-settings-admin.php on line 24

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Hey @mackaaij

    Can you please update to 2.9.3 and let me know if you still get these messages? If yes (hopefully not 🙂 ), please provide more details where you’re getting them (steps to reproduce that).

    Omar

    Thread Starter Patrick Mackaaij

    (@mackaaij)

    The error messages were on top of my admin panel – everywhere I went.

    Updated to 2.9.3 – they’re gone 👍

    Plugin Author Omar AlDabbas

    (@omardabbas)

    Awesome, enjoy the new version 😉

    Omar

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Creation of dynamic property is deprecated in PHP 8.2’ is closed to new replies.