Merge pull request #27285 from woocommerce/fix/make-typehints-specific-in-src

Removed the general `object` type hint from docblocks
This commit is contained in:
Claudio Sanches 2020-08-12 21:41:01 -03:00 committed by GitHub
commit 3d0b38740b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -39,7 +39,7 @@ final class ReserveStock {
/**
* Query for any existing holds on stock for this item.
*
* @param \WC_Product|object $product Product to get reserved stock for.
* @param \WC_Product $product Product to get reserved stock for.
* @param integer $exclude_order_id Optional order to exclude from the results.
*
* @return integer Amount of stock already reserved.
@ -60,7 +60,7 @@ final class ReserveStock {
*
* @throws ReserveStockException If stock cannot be reserved.
*
* @param \WC_Order|object $order Order object.
* @param \WC_Order $order Order object.
* @param int $minutes How long to reserve stock in minutes. Defaults to woocommerce_hold_stock_minutes.
*/
public function reserve_stock_for_order( $order, $minutes = 0 ) {
@ -127,7 +127,7 @@ final class ReserveStock {
/**
* Release a temporary hold on stock for an order.
*
* @param \WC_Order|object $order Order object.
* @param \WC_Order $order Order object.
*/
public function release_stock_for_order( $order ) {
global $wpdb;
@ -151,7 +151,7 @@ final class ReserveStock {
*
* @param int $product_id Product ID which is having stock reserved.
* @param int $stock_quantity Stock amount to reserve.
* @param \WC_Order|object $order Order object which contains the product.
* @param \WC_Order $order Order object which contains the product.
* @param int $minutes How long to reserve stock in minutes.
*/
private function reserve_stock_for_product( $product_id, $stock_quantity, $order, $minutes ) {