Completed
Pull Request — master (#11430)
by Matty
12:49
created
includes/api/class-wc-rest-orders-controller.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -955,7 +955,7 @@
 block discarded – undo
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 {
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-rest-posts-controller.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-shipping-method.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
 	 *
129 129
 	 * Methods should override this to declare support (or lack of support) for a feature.
130 130
 	 *
131
-	 * @param       $feature string The name of a feature to test support for.
131
+	 * @param       string $feature string The name of a feature to test support for.
132 132
 	 * @return bool          True if the shipping method supports the feature, false otherwise.
133 133
 	 */
134 134
 	public function supports( $feature ) {
Please login to merge, or discard this patch.
includes/api/class-wc-rest-products-controller.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 	 */
Please login to merge, or discard this patch.