diff --git a/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php b/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php index 6295002c5..e1f4f9654 100644 --- a/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php +++ b/modules/ppcp-wc-gateway/src/Processor/PaymentsStatusHandlingTrait.php @@ -63,6 +63,9 @@ trait PaymentsStatusHandlingTrait { switch ( $status->name() ) { case CaptureStatus::COMPLETED: $wc_order->payment_complete(); + /** + * Fired when PayPal order is captured. + */ do_action( 'woocommerce_paypal_payments_order_captured', $wc_order, $capture ); break; // It is checked in the capture endpoint already, but there are other ways to capture, diff --git a/src/FilePathPluginFactory.php b/src/FilePathPluginFactory.php index ae7fc7a02..937a0164f 100644 --- a/src/FilePathPluginFactory.php +++ b/src/FilePathPluginFactory.php @@ -57,6 +57,12 @@ class FilePathPluginFactory implements FilePathPluginFactoryInterface { } if ( ! function_exists( 'get_plugin_data' ) ) { + /** + * Skip check for WP files and constants. + * + * @psalm-suppress UnresolvableInclude + * @psalm-suppress UndefinedConstant + */ require_once ABSPATH . 'wp-admin/includes/plugin.php'; }