-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Resolves #12623 [Hackday] [2.7] Add a deprecation note about Debug compo... #12724
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
davidfuhr
commented
Nov 29, 2014
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | yes |
Tests pass? | yes |
Fixed tickets | #12623 |
License | MIT |
Doc PR |
public function __construct() | ||
{ | ||
trigger_error( | ||
'Symfony\Component\HttpKernel\Debug\ErrorHandler is deprecated since version 2.3' |
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.
Can you move the whole expression on one line? Thanks.
The tests fail for because of the deprecation message: https://travis-ci.org/Flagbit/symfony/builds/42471888 Should the changes to phpunit.xml.dist also be applied to the Bridges and Bundles? Because #12705 only did this for the Components. @nicolas-grekas |
Right, we should also patch bundles and bridges. |
@@ -22,4 +22,10 @@ | |||
*/ | |||
class FatalErrorException extends DebugFatalErrorException | |||
{ | |||
public function __construct($message, $code, $severity, $filename, $lineno, $traceOffset = null, $traceArgs = true) | |||
{ | |||
trigger_error('Symfony\Component\HttpKernel\Exception\FatalErrorException is deprecated since version 2.3 and will be removed in 3.0. Use the same class from the Debug component instead.', E_USER_DEPRECATED); |
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.
Is a custom constructor necessary? Adding this just below the namespace
should work too, right?
Moved trigger_error() statements below the namespace declaration. |
Thank you @davidfuhr. |
…bout Debug compo... (davidfuhr) This PR was merged into the 2.7 branch. Discussion ---------- Resolves #12623 [Hackday] [2.7] Add a deprecation note about Debug compo... | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #12623 | License | MIT | Doc PR | Commits ------- 5876f52 [Hackday] [2.7] Add a deprecation note about Debug component classes