Skip to content

Commit

Permalink
Add missing breaking change in 2.10 changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelx committed Dec 21, 2018
1 parent dee8217 commit 152d377
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,22 @@ Recurly_InvoiceList::getOpen()
Recurly_InvoiceList::getPending()
```

#### 6. Deprecated `Recurly_Invoice#subscription` removed

If you are using `Recurly_Invoice->subscription` or `Recurly_Transaction->subscription` anywhere, you will now need to call `subscriptions` instead and take the first one.

```php
# Change this
$subscription = $invoice->subscription->get();
# To this
$subscription = $invoice->subscriptions->get()->current();

# Or this
$subscription = $transaction->subscription->get();
# To this
$subscription = $transaction->subscriptions->get()->current();
```

## Version 2.9.0 (October 6th, 2017)

This release will upgrade us to API version 2.8.
Expand Down

0 comments on commit 152d377

Please sign in to comment.