• Resolved visualasparagus

    (@visualasparagus)


    Hello, I am running PHP 8.2+ and am receiving the following deprecation warning

    Deprecated: Creation of dynamic property Alg_WC_PVBC_Core::$do_modify_query_only_main_query is deprecated in /srv/www/mysite.com/current/web/app/plugins/product-visibility-by-country-for-woocommerce/includes/class-alg-wc-pvbc-core.php on line 52

    Deprecated: Creation of dynamic property Alg_WC_PVBC_Core::$do_modify_query_only_main_query_and_search is deprecated in /srv/www/mysite.com/current/web/app/plugins/product-visibility-by-country-for-woocommerce/includes/class-alg-wc-pvbc-core.php on line 53

    Deprecated: Creation of dynamic property Alg_WC_PVBC_Core::$do_modify_query_check_post_type is deprecated in /srv/www/mysite.com/current/web/app/plugins/product-visibility-by-country-for-woocommerce/includes/class-alg-wc-pvbc-core.php on line 54

    It seems that PHP 8.2 now issues this deprecation warning: https://php.watch/versions/8.2/dynamic-properties-deprecated

    This can easily be resolved by adding #[AllowDynamicProperties] above the line class Alg_WC_PVBC_Core {

    It would be great if this could be patched and tagged so that I can remove my manual override.

    Best.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Deprecated: Creation of dynamic property Alg_WC_PVBC_Core’ is closed to new replies.