You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
While reviewing the Query Monitor, I noticed the following deprecated errors in the WooCommerce Square plugin:
Error: Creation of dynamic property WooCommerce\Square\Gateway\Gift_Card::$is_default_placeholder is deprecated.
Error: Creation of dynamic property WooCommerce\Square\Gateway\Gift_Card::$placeholder_id is deprecated.
@vikrampm1 Saw this deprecation notice today while testing the plugin prior to release. I think we should prioritize this as it should be a quick fix and will ensure we're not filling someone's debug logs
vikrampm1
added
priority: high
The issue/PR is high priority—if affect lots of customers substantially, but not critically.
and removed
type: good first issue
The issue is a good candidate for the first community contribution/for a newcomer to the team.
labels
Mar 6, 2025
Description:
While reviewing the Query Monitor, I noticed the following deprecated errors in the WooCommerce Square plugin:
Error:
Creation of dynamic property WooCommerce\Square\Gateway\Gift_Card::$is_default_placeholder is deprecated.
Error:
Creation of dynamic property WooCommerce\Square\Gateway\Gift_Card::$placeholder_id is deprecated.
Location:
wp-content/plugins/woocommerce-square/includes/Framework/PaymentGateway/Payment_Gateway.php:428
Steps to Reproduce:
Expected Behavior:
No deprecated errors should appear in the logs.
Actual Behavior:
The plugin triggers deprecated errors due to dynamic property creation.
Environment:
WordPress version: 6.7.1
PHP version: 8.2.23
WooCommerce Square version: 4.8.4
The text was updated successfully, but these errors were encountered: