-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
yceruto
commented
Aug 1, 2019
•
edited
Loading
edited
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 | - |
I wonder if should we create an alias for each exception class in the ErrorHandler component? |
this won't solve the linked issue, as the alias will never be loaded... |
948f32e
to
4f071df
Compare
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. |
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
Outdated
Show resolved
Hide resolved
src/Symfony/Component/ErrorRenderer/Resources/stubs/Exception/FlattenException.php
Outdated
Show resolved
Hide resolved
4f071df
to
7b11821
Compare
src/Symfony/Component/ErrorRenderer/Exception/FlattenException.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/ErrorRenderer/Resources/stubs/Exception/FlattenException.php
Outdated
Show resolved
Hide resolved
5445a1d
to
44b0e7d
Compare
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?
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