Repository navigation
Docs: subscriptions->cancel() returns nothing - #87
Merged
Merged
Conversation
DELETE /v1/subscriptions/{id} answers 204 No Content and cancel() returns
void, but the subscriptions guide assigned its result and read status from
it. Fetch the subscription with get() instead, and show immediately: true
and the resource method. The resource cancel test now stubs a 204 without a
body, and new tests cover the endpoint default and the resource with
immediately: true.
Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-0410b2c8-0b76-4f5f-9f15-fb4da0561ffe
… names Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-0410b2c8-0b76-4f5f-9f15-fb4da0561ffe
This was referenced Dec 1, 2026
Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-0410b2c8-0b76-4f5f-9f15-fb4da0561ffe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
DELETE /v1/subscriptions/{id}answers204 No Contentin the API (CancelSubscriptionControllerreturnsresponse()->noContent()) and in the OpenAPI spec, andcancel()returnsvoid. The subscriptions guide (docs.vatly.com/packages/php/subscriptions) assigned the result to$subscriptionand readstatusfrom it, which assignednulland then raised a warning on->status.cancel()returns nothing; read the new state withget()or the cancellation webhooks; showimmediately: trueand$subscription->cancel().immediately: true.Rollout phase
Phase: 1 of 1 — docs and tests only
Predecessor deployed: n/a