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:
parent
6bc2244ec9
commit
514b39eea0
|
@ -0,0 +1,5 @@
|
||||||
|
Significance: patch
|
||||||
|
Type: fix
|
||||||
|
Comment: Fix a type mismatch in UpdateProducts.php
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
@ -473,11 +474,11 @@ 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.
|
||||||
*
|
*
|
||||||
* @return int|\WP_Error
|
* @return int|\WP_Error
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue