-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Keeping backward compatibility with legacy FlattenException usage #33941
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
Oct 9, 2019
Q | A |
---|---|
Branch? | 4.4 |
Bug fix? | yes |
New feature? | no |
Deprecations? | yes |
Tickets | Fix #33929 |
License | MIT |
Doc PR | - |
@@ -37,6 +39,11 @@ class FlattenException | |||
private $file; | |||
private $line; | |||
|
|||
public static function create(\Exception $exception, int $statusCode = null, array $headers = []): self |
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.
Restoring for a smooth migration, it can be deprecated in 5.1.
@@ -33,6 +33,7 @@ | |||
}, | |||
"autoload": { | |||
"psr-4": { "Symfony\\Component\\ErrorRenderer\\": "" }, | |||
"classmap": [ "Resources/stubs/Exception/FlattenException.php" ], |
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.
this would fix the compiler error mentioned here #33929 (comment)
82a9e46
to
042575d
Compare
8c4cda4
to
928363c
Compare
Thank you @yceruto. |
…ption usage (yceruto) This PR was merged into the 4.4 branch. Discussion ---------- Keeping backward compatibility with legacy FlattenException usage | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | yes | Tickets | Fix #33929 | License | MIT | Doc PR | - Commits ------- 928363c Keeping backward compatibility with legacy FlattenException usage
ugly quickfix. put to
|