-
Notifications
You must be signed in to change notification settings - Fork 848
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
Handle file
objects like file_upload
#520
Conversation
Very fast work! :) LGTM. |
79b6a25
to
bb9ea02
Compare
882d56c
to
97de5f4
Compare
I pushed another commit to only use I also had to split the file creation tests into separate test classes, because they need their own setup/teardown methods. |
ptal @brandur-stripe |
tests/Stripe/FileCreationTest.php
Outdated
|
||
namespace Stripe; | ||
|
||
class FileCreationTest extends TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the nit, but given that the separate test file breaks convention elsewhere, could we add a short comment here that just explains that these tests have been moved to a separate suite because the methods they invoke use a separate API hostname?
|
||
namespace Stripe; | ||
|
||
class FileUploadCreationTest extends TestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(And same on this one.)
97de5f4
to
e32b1b7
Compare
Released as 6.18.0. |
Next time, please release this as a new major as it's a breaking change. |
@ruudk |
First, PHPStan failed for it:
|
Weird, it looks like for some reason the class aliasing isn't working in your environment, but I have no idea what could cause that -- if you can use |
I think the issue is that |
The standard is to use Composer autoloader, so no |
Ah yes, that's likely the issue. Our test suite didn't catch this even when using autoload because we have tests for both I'll push a fix with what you suggested. Thanks very much for your help, and sorry for the trouble! |
@ruudk I've just released 6.19.4 to fix the autoloading issue. I guess you've already updated your integration to use Thanks again for your help in investigating and fixing this issue! Much appreciated :) |
r? @brandur-stripe
cc @stripe/api-libraries
Like stripe/stripe-ruby#689, but for PHP.