@@ -890,7 +890,7 @@ |
||
| 890 | 890 | * @param int $variation_id |
| 891 | 891 | * @param array $variation attribute values |
| 892 | 892 | * @param array $cart_item_data extra cart item data we want to pass into the item |
| 893 | - * @return string|bool $cart_item_key |
|
| 893 | + * @return string|false $cart_item_key |
|
| 894 | 894 | */ |
| 895 | 895 | public function add_to_cart( $product_id = 0, $quantity = 1, $variation_id = 0, $variation = array(), $cart_item_data = array() ) { |
| 896 | 896 | // Wrap in try catch so plugins can throw an exception to prevent adding to cart |
@@ -145,7 +145,7 @@ |
||
| 145 | 145 | * WC_TEMPLATE_DEBUG_MODE will prevent overrides in themes from taking priority. |
| 146 | 146 | * |
| 147 | 147 | * @access public |
| 148 | - * @param mixed $slug |
|
| 148 | + * @param string $slug |
|
| 149 | 149 | * @param string $name (default: '') |
| 150 | 150 | */ |
| 151 | 151 | function wc_get_template_part( $slug, $name = '' ) { |
@@ -655,7 +655,7 @@ |
||
| 655 | 655 | * |
| 656 | 656 | * @access public |
| 657 | 657 | * @param mixed $item_id |
| 658 | - * @param mixed $key |
|
| 658 | + * @param string $key |
|
| 659 | 659 | * @param bool $single (default: true) |
| 660 | 660 | * @return mixed |
| 661 | 661 | */ |
@@ -433,7 +433,7 @@ discard block |
||
| 433 | 433 | * Create order. |
| 434 | 434 | * |
| 435 | 435 | * @param WP_REST_Request $request Full details about the request. |
| 436 | - * @return int|WP_Error |
|
| 436 | + * @return integer |
|
| 437 | 437 | */ |
| 438 | 438 | protected function create_order( $request ) { |
| 439 | 439 | wc_transaction_query( 'start' ); |
@@ -916,7 +916,7 @@ discard block |
||
| 916 | 916 | * |
| 917 | 917 | * @param WP_REST_Request $request Full details about the request. |
| 918 | 918 | * @param WP_Post $post Post data. |
| 919 | - * @return int|WP_Error |
|
| 919 | + * @return integer |
|
| 920 | 920 | */ |
| 921 | 921 | protected function update_order( $request, $post ) { |
| 922 | 922 | try { |
@@ -1076,7 +1076,7 @@ discard block |
||
| 1076 | 1076 | * |
| 1077 | 1077 | * @since 2.6.0 |
| 1078 | 1078 | * @param array $args Order args. |
| 1079 | - * @return WC_Order|WP_Error |
|
| 1079 | + * @return WC_Order |
|
| 1080 | 1080 | */ |
| 1081 | 1081 | protected function create_base_order( $args ) { |
| 1082 | 1082 | return wc_create_order( $args ); |