From aee1fab7006dc334adee13f19806086c1fba302f Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Tue, 27 Jun 2017 17:57:55 -0400 Subject: [PATCH] fix lint and analyzer issues --- Stripe/PublicHeaders/STPAddress.h | 4 ++-- Stripe/STPCustomer.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Stripe/PublicHeaders/STPAddress.h b/Stripe/PublicHeaders/STPAddress.h index 6c6990ae9d..b243923364 100644 --- a/Stripe/PublicHeaders/STPAddress.h +++ b/Stripe/PublicHeaders/STPAddress.h @@ -105,8 +105,8 @@ typedef NS_ENUM(NSUInteger, STPBillingAddressFields) { * @param address The user's shipping address. If nil, this method will return nil. * @param method The user's selected shipping method. May be nil. */ -+ (NSDictionary *)shippingInfoForChargeWithAddress:(nullable STPAddress *)address - shippingMethod:(nullable PKShippingMethod *)method; ++ (nullable NSDictionary *)shippingInfoForChargeWithAddress:(nullable STPAddress *)address + shippingMethod:(nullable PKShippingMethod *)method; #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated" diff --git a/Stripe/STPCustomer.m b/Stripe/STPCustomer.m index 88f7f23912..238273f5a6 100644 --- a/Stripe/STPCustomer.m +++ b/Stripe/STPCustomer.m @@ -66,7 +66,7 @@ return nil; } - STPCustomer *customer = [STPCustomer new]; + STPCustomer *customer = [[self class] new]; customer.stripeID = dict[@"id"]; NSString *defaultSourceId; if ([dict[@"default_source"] isKindOfClass:[NSString class]]) {