From 0b2e4eeeeaedd287dc59e8005064bf37120b5d49 Mon Sep 17 00:00:00 2001 From: Marc Heiduk Date: Sun, 13 Oct 2024 17:28:47 +0200 Subject: [PATCH 1/2] fix: wrong phpdoc return for cancelFor/cancelForId methods --- src/Endpoints/SubscriptionEndpoint.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Endpoints/SubscriptionEndpoint.php b/src/Endpoints/SubscriptionEndpoint.php index 8e2d8122c..f85a89f6d 100644 --- a/src/Endpoints/SubscriptionEndpoint.php +++ b/src/Endpoints/SubscriptionEndpoint.php @@ -194,7 +194,7 @@ public function iteratorForId(string $customerId, ?string $from = null, ?int $li * @param string $subscriptionId * @param array $data * - * @return null + * @return mixed * @throws ApiException */ public function cancelFor(Customer $customer, $subscriptionId, array $data = []) @@ -207,7 +207,7 @@ public function cancelFor(Customer $customer, $subscriptionId, array $data = []) * @param string $subscriptionId * @param array $data * - * @return null + * @return mixed * @throws ApiException */ public function cancelForId($customerId, $subscriptionId, array $data = []) From 53e0a83f3cf2dada62b691963bacea6716970513 Mon Sep 17 00:00:00 2001 From: Marc Heiduk Date: Sun, 20 Oct 2024 17:20:28 +0200 Subject: [PATCH 2/2] change phpdoc return to Subscription for cancelFor/cancelForId methods --- src/Endpoints/SubscriptionEndpoint.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Endpoints/SubscriptionEndpoint.php b/src/Endpoints/SubscriptionEndpoint.php index f85a89f6d..4e6c4d9a0 100644 --- a/src/Endpoints/SubscriptionEndpoint.php +++ b/src/Endpoints/SubscriptionEndpoint.php @@ -194,7 +194,7 @@ public function iteratorForId(string $customerId, ?string $from = null, ?int $li * @param string $subscriptionId * @param array $data * - * @return mixed + * @return Subscription * @throws ApiException */ public function cancelFor(Customer $customer, $subscriptionId, array $data = []) @@ -207,7 +207,7 @@ public function cancelFor(Customer $customer, $subscriptionId, array $data = []) * @param string $subscriptionId * @param array $data * - * @return mixed + * @return Subscription * @throws ApiException */ public function cancelForId($customerId, $subscriptionId, array $data = [])