Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubscriptionAddon: fix call to undefined method Recurly_SubscriptionAddOn::__valuesString() #811

Merged

Conversation

glaubinix
Copy link

Fixes Uncaught PHP Exception Error: "Call to undefined method Recurly_SubscriptionAddOn::__valuesString()" at subscription_addon.php line 58

@douglasmiller douglasmiller added the V2 V2 Client label May 9, 2024
Copy link
Contributor

@douglasmiller douglasmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this pull request, @glaubinix. This looks to have been a missed usage during a previous refactor of the code.

Would you mind updating this pull request to remove the __toString function entirely from the Recurly_SubscriptionAddOn? There is a more robust version defined on Recurly_Base which this class ultimately extends (via Recurly_Resource)

@glaubinix glaubinix force-pushed the v2-call-to-undefined-method-__valuesString branch from bf5b138 to e4bb8d8 Compare May 9, 2024 15:37
@glaubinix
Copy link
Author

Sure, done

@douglasmiller douglasmiller merged commit f820d95 into recurly:v2 May 10, 2024
5 checks passed
recurly-integrations pushed a commit that referenced this pull request Jul 3, 2024
[Full Changelog](2.14.10...2.14.11)

**Merged Pull Requests**

- GET external_subscription by external_id - V2 PHP [#816](#816) ([paulorbpinho-fullstacklabs](https://github.com/paulorbpinho-fullstacklabs))
- Add taxable address sources to business entity and adjustment [#815](#815) ([ELepolt](https://github.com/ELepolt))
- SubscriptionAddon: fix call to undefined method Recurly_SubscriptionAddOn::__valuesString() [#811](#811) ([glaubinix](https://github.com/glaubinix))
- Added support for `proration_settings` for updating subscriptions [#809](#809) ([csampson](https://github.com/csampson))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V2 V2 Client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants