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

Fix fatal PHP error #3773

Merged
merged 1 commit into from
Jan 24, 2025
Merged

Fix fatal PHP error #3773

merged 1 commit into from
Jan 24, 2025

Conversation

asumaran
Copy link
Contributor

@asumaran asumaran commented Jan 24, 2025

Fixes a fatal PHP error introduced in #3727

  | <b>Fatal error</b>:  Uncaught Error: Access to undeclared static property WC_Stripe_UPE_Payment_Gateway::$UPE_AVAILABLE_METHODS in /Users/asumaran/Developer/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php:153
  | Stack trace:
  | #0 /Users/asumaran/Developer/woocommerce-gateway-stripe/woocommerce-gateway-stripe.php(755): WC_Stripe_UPE_Payment_Gateway-&gt;__construct()
  | #1 /Users/asumaran/Developer/woocommerce-gateway-stripe/includes/class-wc-stripe-order-handler.php(243): WC_Stripe-&gt;get_main_stripe_gateway()
  | #2 /Users/asumaran/valet/wcstripe/wp-includes/class-wp-hook.php(324): WC_Stripe_Order_Handler-&gt;maybe_process_redirect_order(Object(WP))
  | #3 /Users/asumaran/valet/wcstripe/wp-includes/class-wp-hook.php(348): WP_Hook-&gt;apply_filters(NULL, Array)
  | #4 /Users/asumaran/valet/wcstripe/wp-includes/plugin.php(565): WP_Hook-&gt;do_action(Array)
  | #5 /Users/asumaran/valet/wcstripe/wp-includes/class-wp.php(830): do_action_ref_array('wp', Array)
  | #6 /Users/asumaran/valet/wcstripe/wp-includes/functions.php(1336): WP-&gt;main('')
  | #7 /Users/asumaran/valet/wcstripe/wp-blog-header.php(16): wp()
  | #8 /Users/asumaran/valet/wcstripe/index.php(17): require('/Users/asumaran...')
  | #9 /Users/asumaran/.composer/vendor/laravel/valet/server.php(111): require('/Users/asumaran...')
  | #10 {main}
  | thrown in <b>/Users/asumaran/Developer/woocommerce-gateway-stripe/includes/payment-methods/class-wc-stripe-upe-payment-gateway.php</b> on line <b>153</b><br />


@asumaran asumaran marked this pull request as ready for review January 24, 2025 23:33
@asumaran asumaran merged commit 4b617bc into develop Jan 24, 2025
35 of 37 checks passed
@asumaran asumaran deleted the as-fix-php-fatal-error branch January 24, 2025 23:36
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

Successfully merging this pull request may close these issues.

1 participant