From 74e4daa9b3fc8b9ca08a65e3410bc06cec0c798e Mon Sep 17 00:00:00 2001 From: Alex P Date: Wed, 3 Nov 2021 10:21:08 +0200 Subject: [PATCH] Fix patching check --- .../ppcp-api-client/src/Factory/PatchCollectionFactory.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/ppcp-api-client/src/Factory/PatchCollectionFactory.php b/modules/ppcp-api-client/src/Factory/PatchCollectionFactory.php index 85aca7a94..3be240393 100644 --- a/modules/ppcp-api-client/src/Factory/PatchCollectionFactory.php +++ b/modules/ppcp-api-client/src/Factory/PatchCollectionFactory.php @@ -52,14 +52,12 @@ class PatchCollectionFactory { array_filter( $from, static function ( PurchaseUnit $unit ) use ( $purchase_unit_to ): bool { - //phpcs:disable WordPress.PHP.StrictComparisons.LooseComparison // Loose comparison needed to compare two objects. + // phpcs:ignore WordPress.PHP.StrictComparisons.LooseComparison return $unit == $purchase_unit_to; - //phpcs:enable WordPress.PHP.StrictComparisons.LooseComparison } ) ); - $needs_update = true; if ( ! $needs_update ) { continue; }