minor #33301 [Debug] Remove superfluous deprecation notice (chalasr)
This PR was merged into the 4.4 branch.
Discussion
----------
[Debug] Remove superfluous deprecation notice
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
The whole class has been deprecated meanwhile
Commits
-------
5dd6468ec1
[Debug] Remove superfluous deprecation notice
This commit is contained in:
commit
bee347c6f2
@ -38,13 +38,8 @@ class FlattenException
|
||||
private $file;
|
||||
private $line;
|
||||
|
||||
/**
|
||||
* @deprecated since Symfony 4.4, use Symfony\Component\ErrorRenderer\Exception::createFromThrowable() instead.
|
||||
*/
|
||||
public static function create(\Exception $exception, $statusCode = null, array $headers = [])
|
||||
{
|
||||
@trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.4, use Symfony\Component\ErrorRenderer\Exception::createFromThrowable() instead.', __METHOD__), E_USER_DEPRECATED);
|
||||
|
||||
return static::createFromThrowable($exception, $statusCode, $headers);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user