Skip to content

Undefined array key "payment" warning in PHP v8.2 #107

@iamdharmesh

Description

@iamdharmesh

Describe the Bug

Original Report:
"We're getting the following PHP Error after upgrading PHP to v8.2
Warning: Undefined array key "payment" in /wp-content/plugins/woocommerce-gateway-gocardless/includes/class-wc-gocardless-gateway.php on line 2158

To Reproduce

  1. Set WP_DEBUG true and upgrade to PHP 8.2
  2. Place order with GoCardless
  3. Check debug logs

Screenshots

Expected Behavior

No PHP warning should be there on PHP 8.2

Actual Behavior

Undefined array key "payment" warning in PHP v8.2

Environment

  • WordPress Version
  • WooCommerce Version
  • Plugin Version
  • Browser [e.g. Chrome, Safari] and Version
  • Any other plugins installed

Additional Details

System status
<!--If applicable, paste the system status here. Please ensure you redact or remove any identifying information. -->

Metadata

Metadata

Assignees

Labels

type: bugThe issue is a confirmed bug.

Type

No type

Projects

Status

To Do

Relationships

None yet

Development

No branches or pull requests

Issue actions