Fix a type mismatch in UpdateProducts.php (#51408)

* Fix a type mismatch in UpdateProducts.php

* Add changelog file

* Fix a type mismatch in UpdateProducts.php (II)
This commit is contained in:
Albert Juhé Lluveras 2024-09-17 16:56:55 +02:00 committed by GitHub
parent 6bc2244ec9
commit 514b39eea0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 5 deletions

View File

@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Fix a type mismatch in UpdateProducts.php

View File

@ -4,6 +4,7 @@ namespace Automattic\WooCommerce\Blocks\AIContent;
use Automattic\WooCommerce\Blocks\AI\Connection; use Automattic\WooCommerce\Blocks\AI\Connection;
use WP_Error; use WP_Error;
/** /**
* Pattern Images class. * Pattern Images class.
* *
@ -474,7 +475,7 @@ class UpdateProducts {
* Update the product with the new content. * Update the product with the new content.
* *
* @param \WC_Product $product The product. * @param \WC_Product $product The product.
* @param int $product_image_id The product image ID. * @param int|string|WP_Error $product_image_id The product image ID.
* @param string $product_title The product title. * @param string $product_title The product title.
* @param string $product_description The product description. * @param string $product_description The product description.
* @param int $product_price The product price. * @param int $product_price The product price.