Skip to content

Commit

Permalink
Merge pull request woocommerce#21852 from rellect/fix_return_types
Browse files Browse the repository at this point in the history
Correct return types in class-wc-payment-tokens.php
  • Loading branch information
claudiosanches authored Nov 7, 2018
2 parents 452e8bc + d8648f8 commit 7f12c4e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions includes/class-wc-payment-tokens.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class WC_Payment_Tokens {
* @type string $gateway_id Gateway ID.
* @type string $type Token type.
* }
* @return array
* @return WC_Payment_Token[]
*/
public static function get_tokens( $args ) {
$args = wp_parse_args(
Expand Down Expand Up @@ -62,7 +62,7 @@ public static function get_tokens( $args ) {
* @since 2.6.0
* @param int $customer_id Customer ID.
* @param string $gateway_id Optional Gateway ID for getting tokens for a specific gateway.
* @return array Array of token objects.
* @return WC_Payment_Token[] Array of token objects.
*/
public static function get_customer_tokens( $customer_id, $gateway_id = '' ) {
if ( $customer_id < 1 ) {
Expand Down Expand Up @@ -105,8 +105,8 @@ public static function get_customer_default_token( $customer_id ) {
* Returns an array of payment token objects associated with the passed order ID.
*
* @since 2.6.0
* @param int $order_id Order ID.
* @return array Array of token objects.
* @param int $order_id Order ID.
* @return WC_Payment_Token[] Array of token objects.
*/
public static function get_order_tokens( $order_id ) {
$order = wc_get_order( $order_id );
Expand Down Expand Up @@ -170,7 +170,7 @@ public static function get( $token_id, $token_result = null ) {
* Remove a payment token from the database by ID.
*
* @since 2.6.0
* @param WC_Payment_Token $token_id Token ID.
* @param int $token_id Token ID.
*/
public static function delete( $token_id ) {
$type = self::get_token_type_by_id( $token_id );
Expand Down

0 comments on commit 7f12c4e

Please sign in to comment.