mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-03 08:37:53 +08:00
Fix psalm errors
This commit is contained in:
parent
dcbac3cae3
commit
e8c2147762
1 changed files with 5 additions and 1 deletions
|
@ -227,7 +227,11 @@ class AuthorizedPaymentsProcessor {
|
|||
)
|
||||
);
|
||||
|
||||
if ( $this->config->has( 'intent' ) && strtoupper( (string) $this->config->get( 'intent' ) ) === 'CAPTURE' ) {
|
||||
if (
|
||||
$this->config->has( 'intent' )
|
||||
&& strtoupper( (string) $this->config->get( 'intent' ) ) === 'CAPTURE'
|
||||
&& is_array( $wc_orders )
|
||||
) {
|
||||
foreach ( $wc_orders as $wc_order ) {
|
||||
if (
|
||||
$this->subscription_helper->has_subscription( $wc_order->get_id() )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue