-
-
Notifications
You must be signed in to change notification settings - Fork 57
WIP: Using SplFileObject::getSize instead of UploadedFile::getClientSize #42
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
Conversation
Hey! We need to make sure that the getSize() method exists - it has not always be there (not sure what version of Symfony it was added). I think we should call it if it exists, else fall back to the current method. |
@weaverryan It's inherited from \SplFileInfo, exists in PHP since PHP 5.1.2 |
Tests are apparently broken. |
Added php 7.1 7.2 to travis
.travis.yml
Outdated
@@ -20,6 +20,8 @@ matrix: | |||
- php: 5.6 | |||
env: COMPOSER_OPTIONS="" SYMFONY_DEPRECATIONS_HELPER=weak | |||
- php: 7.0 | |||
- php: 7.1 | |||
- php: 7.2 | |||
- php: hhvm | |||
allow_failures: | |||
- php: hhvm |
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.
Can you remove HHVM, as we don't support it anymore anyway?
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.
Yes, i'll remove it
I have fixed failing tests. Some deprecation notices remaining: Should we fix it too in this PR? Any ideas how to support 2 versions of |
This also is fixed in #45 |
This is can be closed |
solves #41