Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[ErrorRenderer] Add alias to FlattenException to avoid BC break#32873
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
yceruto commentedAug 1, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I wonder if should we create an alias for each exception class in the ErrorHandler component? |
nicolas-grekas commentedAug 1, 2019
this won't solve the linked issue, as the alias will never be loaded... |
948f32e to4f071dfCompareyceruto commentedAug 1, 2019 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
That's the case when we (the HttpKernel or ErrorRenderer component) throws the new exception, but shouldn't we also cover the case when someone is throwning the old one? The lastest changes cover both cases. |
nicolas-grekas left a comment
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.
(we should do this only for a very limited subset of the classes in Debug - this one only maybe?)
src/Symfony/Component/ErrorRenderer/Exception/FlattenException.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/ErrorRenderer/Resources/stubs/Exception/FlattenException.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
4f071df to7b11821Comparesrc/Symfony/Component/ErrorRenderer/Exception/FlattenException.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/ErrorRenderer/Resources/stubs/Exception/FlattenException.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
5445a1d to44b0e7dCompareyceruto commentedAug 1, 2019
Done! |
| class_alias(\Symfony\Component\ErrorRenderer\Exception\FlattenException::class, FlattenException::class); | ||
| } | ||
| if (false) { |
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.
What is the purpose of "if (false)" this case?
fabpot commentedAug 5, 2019
Thank you@yceruto. |
…break (yceruto)This PR was merged into the 4.4 branch.Discussion----------[ErrorRenderer] Add alias to FlattenException to avoid BC break| Q | A| ------------- | ---| Branch? | 4.4| Bug fix? | yes| New feature? | no| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets |#32473| License | MIT| Doc PR | -Commits-------44b0e7d Created alias to FlattenException to avoid BC break
Uh oh!
There was an error while loading.Please reload this page.