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 error on YouTube media creation #1847

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

tambait
Copy link
Contributor

@tambait tambait commented Oct 22, 2020

Subject

I am targeting this branch because this is a bug fix.

Closes #1804

Changelog

### Fixed
- Error on YouTube media creation in `ImageUploadDimensionValidator`

@tambait tambait marked this pull request as draft October 22, 2020 10:46
@tambait
Copy link
Contributor Author

tambait commented Oct 22, 2020

I initially made changes along proposal in #1804 which solved the issue but tests for PHP 7.3 & 7.4 were failing. Since I wasn't sure how to adapt test code, I tried with different approach but now PHP 8.0 test is failing.

@jordisala1991
Copy link
Member

Dont worry about php 8, this build needs some work before it can pass.

@tambait tambait marked this pull request as ready for review October 22, 2020 13:23
@VincentLanglet
Copy link
Member

I initially made changes along proposal in #1804 which solved the issue but tests for PHP 7.3 & 7.4 were failing. Since I wasn't sure how to adapt test code, I tried with different approach but now PHP 8.0 test is failing.

When looking at checks made somewhere else in the code, they check for instanceof \SplFileInfo, instead of File (which extends \SplFileInfo)

VincentLanglet
VincentLanglet previously approved these changes Oct 22, 2020
Copy link
Member

@VincentLanglet VincentLanglet left a comment

Choose a reason for hiding this comment

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

You can remove the null check

@VincentLanglet VincentLanglet requested a review from a team October 22, 2020 15:21
@OskarStark OskarStark merged commit c716895 into sonata-project:3.x Oct 23, 2020
@OskarStark
Copy link
Member

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Exception on youtube media creation
5 participants