Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated PHP Error in WooCommerce Square Plugin #270

Open
qasumitbagthariya opened this issue Jan 16, 2025 · 0 comments
Open

Deprecated PHP Error in WooCommerce Square Plugin #270

qasumitbagthariya opened this issue Jan 16, 2025 · 0 comments

Comments

@qasumitbagthariya
Copy link
Contributor

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:

  1. Enable the WooCommerce Square plugin.
  2. Monitor the Query Monitor for PHP errors.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant