Merge pull request #28586 from idofri/phpdoc

Corrected data-types in phpdoc @param
This commit is contained in:
Roy Ho 2021-01-11 06:52:11 -08:00 committed by GitHub
commit d8b0a8558e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -428,7 +428,7 @@ class WC_Coupon_Data_Store_CPT extends WC_Data_Store_WP implements WC_Coupon_Dat
*
* @since 3.0.0
* @param WC_Coupon $coupon Coupon object.
* @param id $user_id User ID.
* @param int $user_id User ID.
* @return int
*/
public function get_usage_by_user_id( &$coupon, $user_id ) {

View File

@ -305,7 +305,7 @@ class WC_Payment_Token_Data_Store extends WC_Data_Store_WP implements WC_Payment
* Should contain the fields token_id, gateway_id, token, user_id, type, is_default.
*
* @since 3.0.0
* @param id $token_id Token ID.
* @param int $token_id Token ID.
* @return object
*/
public function get_token_by_id( $token_id ) {
@ -322,7 +322,7 @@ class WC_Payment_Token_Data_Store extends WC_Data_Store_WP implements WC_Payment
* Returns metadata for a specific payment token.
*
* @since 3.0.0
* @param id $token_id Token ID.
* @param int $token_id Token ID.
* @return array
*/
public function get_metadata( $token_id ) {
@ -333,7 +333,7 @@ class WC_Payment_Token_Data_Store extends WC_Data_Store_WP implements WC_Payment
* Get a token's type by ID.
*
* @since 3.0.0
* @param id $token_id Token ID.
* @param int $token_id Token ID.
* @return string
*/
public function get_token_type_by_id( $token_id ) {
@ -353,7 +353,7 @@ class WC_Payment_Token_Data_Store extends WC_Data_Store_WP implements WC_Payment
*
* @since 3.0.0
*
* @param id $token_id Token ID.
* @param int $token_id Token ID.
* @param bool $status Whether given payment token is the default payment token or not.
*
* @return void