Completed
Pull Request — master (#11030)
by Nicola
08:02
created
includes/class-wc-install.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -240,6 +240,7 @@
 block discarded – undo
240 240
 
241 241
 	/**
242 242
 	 * Update DB version to current.
243
+	 * @param string $version
243 244
 	 */
244 245
 	public static function update_db_version( $version = null ) {
245 246
 		delete_option( 'woocommerce_db_version' );
Please login to merge, or discard this patch.
includes/api/class-wc-rest-orders-controller.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -423,7 +423,7 @@  discard block
 block discarded – undo
423 423
 	 * Create order.
424 424
 	 *
425 425
 	 * @param WP_REST_Request $request Full details about the request.
426
-	 * @return int|WP_Error
426
+	 * @return integer
427 427
 	 */
428 428
 	protected function create_order( $request ) {
429 429
 		wc_transaction_query( 'start' );
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
 	 * 1) Only non-protected meta (no leading underscore) can be set
800 800
 	 * 2) Meta values must be scalar (int, string, bool)
801 801
 	 *
802
-	 * @param WC_Order $order Order data.
802
+	 * @param integer $order_id Order data.
803 803
 	 * @param array $meta_data Meta data in array( 'meta_key' => 'meta_value' ) format.
804 804
 	 */
805 805
 	protected function update_meta_data( $order_id, $meta_data ) {
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
 	 *
907 907
 	 * @param WP_REST_Request $request Full details about the request.
908 908
 	 * @param WP_Post $post Post data.
909
-	 * @return int|WP_Error
909
+	 * @return integer
910 910
 	 */
911 911
 	protected function update_order( $request, $post ) {
912 912
 		try {
@@ -1066,7 +1066,6 @@  discard block
 block discarded – undo
1066 1066
 	 *
1067 1067
 	 * @since 2.6.0
1068 1068
 	 * @param array $args Order args.
1069
-	 * @param WP_REST_Request $request Full details about the request.
1070 1069
 	 * @return WC_Order
1071 1070
 	 */
1072 1071
 	protected function create_base_order( $args, $data ) {
Please login to merge, or discard this patch.