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

Fix header persistence on Collection objects #435

Merged
merged 1 commit into from
Feb 12, 2018
Merged

Conversation

ob-stripe
Copy link
Contributor

@ob-stripe ob-stripe commented Feb 11, 2018

r? @brandur-stripe
cc @stripe/api-libraries @rs-sliske

Fixes #434.

In 6.0.0, Collection is no longer a subclass of ApiResource (cf. #404). Because the list of persistent headers was stored on ApiResource, this broke API requests on collection objects that used headers.

Since we have a dedicated class in stripe-php to store request options (Util\RequestOptions), I've moved the header persistence logic there.

@brandur-stripe
Copy link
Contributor

Nice fix, and great tests as usual!

LGTM.

@ob-stripe ob-stripe merged commit 662ecba into master Feb 12, 2018
@ob-stripe ob-stripe deleted the ob-fix-434 branch February 12, 2018 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants