mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Ensure woocommerce_order_actions
callback could accept one single parameter
This commit is contained in:
parent
0bdbe116b3
commit
6d47656d1f
1 changed files with 1 additions and 1 deletions
|
@ -196,7 +196,7 @@ class PayPalSubscriptionsModule implements ModuleInterface {
|
|||
*
|
||||
* @psalm-suppress MissingClosureParamType
|
||||
*/
|
||||
function( $actions, $subscription ): array {
|
||||
function( $actions, $subscription = null ): array {
|
||||
if ( ! is_array( $actions ) || ! is_a( $subscription, WC_Subscription::class ) ) {
|
||||
return $actions;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue