@@ -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 | */ |
@@ -955,7 +955,7 @@ |
||
| 955 | 955 | * |
| 956 | 956 | * @param WP_REST_Request $request Full details about the request. |
| 957 | 957 | * @param WP_Post $post Post data. |
| 958 | - * @return int|WP_Error |
|
| 958 | + * @return integer |
|
| 959 | 959 | */ |
| 960 | 960 | protected function update_order( $request, $post ) { |
| 961 | 961 | try { |
@@ -135,7 +135,7 @@ discard block |
||
| 135 | 135 | /** |
| 136 | 136 | * Get post types. |
| 137 | 137 | * |
| 138 | - * @return array |
|
| 138 | + * @return string[] |
|
| 139 | 139 | */ |
| 140 | 140 | protected function get_post_types() { |
| 141 | 141 | return array( $this->post_type ); |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | * |
| 231 | 231 | * @param WP_Post $post |
| 232 | 232 | * @param WP_REST_Request $request |
| 233 | - * @return bool|WP_Error |
|
| 233 | + * @return boolean |
|
| 234 | 234 | */ |
| 235 | 235 | protected function add_post_meta_fields( $post, $request ) { |
| 236 | 236 | return true; |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | * |
| 685 | 685 | * @param WP_Post $post |
| 686 | 686 | * @param WP_REST_Request $request |
| 687 | - * @return bool|WP_Error |
|
| 687 | + * @return boolean |
|
| 688 | 688 | */ |
| 689 | 689 | protected function update_post_meta_fields( $post, $request ) { |
| 690 | 690 | return true; |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * Force https for urls. |
| 53 | 53 | * |
| 54 | - * @param mixed $content |
|
| 54 | + * @param string $content |
|
| 55 | 55 | * @return string |
| 56 | 56 | */ |
| 57 | 57 | public static function force_https_url( $content ) { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | /** |
| 116 | 116 | * Get post types. |
| 117 | 117 | * |
| 118 | - * @return array |
|
| 118 | + * @return string[] |
|
| 119 | 119 | */ |
| 120 | 120 | protected function get_post_types() { |
| 121 | 121 | return array( 'product', 'product_variation' ); |
@@ -817,7 +817,7 @@ discard block |
||
| 817 | 817 | /** |
| 818 | 818 | * Save downloadable files. |
| 819 | 819 | * |
| 820 | - * @param in $product_id |
|
| 820 | + * @param integer $product_id |
|
| 821 | 821 | * @param array $downloads |
| 822 | 822 | * @param int $variation_id |
| 823 | 823 | */ |