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

Call Recurly_Resource's constructor #67

Merged
merged 1 commit into from
Feb 20, 2014
Merged

Call Recurly_Resource's constructor #67

merged 1 commit into from
Feb 20, 2014

Conversation

drewish
Copy link

@drewish drewish commented Nov 10, 2013

PHP doesn't call parent constructors automagically, so if you override it you need to call parent::__construct() yourself.

There's sort of a side question of should we maintain the same interface... Recurly_Subscription was passing $href and $client up but none of the others were and Recurly_Account has a totally different thing where it'll accept $accountCode. So I think we could go either way but it'd be nice to pick one.

PHP doesn't call parent constructors automagically, so if you override
it you need to call `parent::__construct()` yourself.
aheckmann added a commit that referenced this pull request Feb 20, 2014
Call Recurly_Resource's constructor
@aheckmann aheckmann merged commit 20aa7da into master Feb 20, 2014
@aheckmann aheckmann deleted the call-constructors branch February 20, 2014 17:49
@bhelx bhelx added the V2 V2 Client label Mar 3, 2020
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.

None yet

3 participants