-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add a new ErrorHandler component (mirror of the Debug component) #32471
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
The PhpUnit bridge was affected here, hence the failures in Debug & ErrorHandler. This is solved automatically after the merge. |
bdc7b48
to
1b48738
Compare
009cd5a
to
b842ad9
Compare
rebase needed |
Don'tmiss updating the root composer.json file. |
b842ad9
to
ca9ad2b
Compare
Done! |
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 about failures?
src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
Outdated
Show resolved
Hide resolved
"require": { | ||
"php": "^7.1.3", | ||
"psr/log": "~1.0", | ||
"symfony/error-renderer": "^4.4|^5.0" |
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.
something we might want to relax later on
Let's see after #32471 (comment) what happen |
f29cec4
to
3d94a91
Compare
src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
Outdated
Show resolved
Hide resolved
src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
Outdated
Show resolved
Hide resolved
3d94a91
to
8201718
Compare
The problem with failed tests is related to these changes, because phpunit is still installing the old version (with Debug\DebugClassLoader). But I fixed it to make it pass after the merge, when both are together, where the ErrorHandler\DebugClassLoader wins. |
Maybe you have another solution? |
8201718
to
e9b10af
Compare
@nicolas-grekas I fixed the failed tests, AppVeyor's failures are unrelated, I guess, and Travis's (high) is normal. Status: Needs Review |
What's the goal of this? It's just a renaming? |
src/Symfony/Bridge/PhpUnit/Legacy/SymfonyTestsListenerTrait.php
Outdated
Show resolved
Hide resolved
* | ||
* @return static | ||
*/ | ||
public static function register($debug = true, $charset = null, $fileLinkFormat = null) |
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.
missing types in all of the new ErrorHandler component
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.
I gonna make those changes in another PR with that goal, where we can see the diff clearer, now that would complicate the review unnecessary.
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.
I agree with yceruto. Adding the ErrorHandler component is a big PR. So we should take care type-hints in an another one.
What do we gain from this apart from the slightly better fitting name? This will affect everyone and there is no automatic update because the Debug class is part of every front controller which is part of flex. I think some more justification would be good. |
I see two major gains:
|
0c5070f
to
b1b6e80
Compare
Thank you @yceruto. |
…component) (yceruto) This PR was squashed before being merged into the 4.4 branch (closes #32471). Discussion ---------- Add a new ErrorHandler component (mirror of the Debug component) | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - On top of #32470 Commits ------- b1b6e80 Add a new ErrorHandler component (mirror of the Debug component)
On top of #32470