Skip to content

Fixed missing friendly error on call of getMimeType() #35807

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

Closed
wants to merge 1 commit into from
Closed

Fixed missing friendly error on call of getMimeType() #35807

wants to merge 1 commit into from

Conversation

GrahamCampbell
Copy link
Contributor

@GrahamCampbell GrahamCampbell commented Feb 20, 2020

Q A
Branch? master
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

I would actually be in favour for reverting this change entirely, as it is breaking. It breaks laravel/framework's 7.x branch which depends on symfony/http-foundation: ^5.0. When v5.1.0 comes out, it will be broken. I'd argue Laravel was not using symfony/mime implicitly, since it called code in http-foundation. It didn't make use of a non-direct dependency by bypassing http-foundation code. I think Symfony should wait until 6.0 before making this an optional dependency.

@chalasr chalasr added this to the next milestone Feb 23, 2020
Copy link
Member

@chalasr chalasr left a comment

Choose a reason for hiding this comment

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

I would merge it on 4.4.

@GrahamCampbell
Copy link
Contributor Author

I would merge it on 4.4.

That would be a major breaking change and would break laravel/framework 6 LTS.

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Feb 23, 2020

Closing in favor of #35808 because the implementation is a bit simpler and also because it adds a missing changelog line.
Thank you @GrahamCampbell for spotting the issue and submitting the PR.

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.

5 participants