Skip to content

Commit 15625e6

Browse files
committed
test: suppress false positive for WC_Product::get_global_unique_id
1 parent 185ba95 commit 15625e6

2 files changed

Lines changed: 12 additions & 508 deletions

File tree

modules/ppcp-api-client/src/Helper/PaymentLevelHelper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ private function build_level_3_line_items( array $items ): array {
330330
if ( $item->product_id() ) {
331331
$product = wc_get_product( $item->product_id() );
332332
if ( $product ) {
333+
/** @psalm-suppress UndefinedMethod - get_global_unique_id exists since WC 9.1.0 */
333334
$gtin = $product->get_global_unique_id();
334335
}
335336
}

0 commit comments

Comments
 (0)