Skip to content

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

Merged
merged 1 commit into from
Nov 29, 2014
Merged

Resolves #12623 [Hackday] [2.7] Add a deprecation note about Debug compo... #12724

merged 1 commit into from
Nov 29, 2014

Conversation

davidfuhr
Copy link

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'
Copy link
Member

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.

@davidfuhr
Copy link
Author

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

@nicolas-grekas
Copy link
Member

Right, we should also patch bundles and bridges.
For this PR, can you please move the notices below the namespace declaration (see https://github.com/symfony/symfony/pull/12739/files)

@@ -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);
Copy link
Member

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?

@davidfuhr
Copy link
Author

Moved trigger_error() statements below the namespace declaration.

@fabpot
Copy link
Member

fabpot commented Nov 29, 2014

Thank you @davidfuhr.

@fabpot fabpot merged commit 5876f52 into symfony:2.7 Nov 29, 2014
fabpot added a commit that referenced this pull request Nov 29, 2014
…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
@davidfuhr davidfuhr deleted the 12623-deprecate-debug-components branch November 29, 2014 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants