[Debug] Remove superfluous deprecation notice
This commit is contained in:
parent
5255ab89d2
commit
5dd6468ec1
@ -38,13 +38,8 @@ class FlattenException
|
|||||||
private $file;
|
private $file;
|
||||||
private $line;
|
private $line;
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated since Symfony 4.4, use Symfony\Component\ErrorRenderer\Exception::createFromThrowable() instead.
|
|
||||||
*/
|
|
||||||
public static function create(\Exception $exception, $statusCode = null, array $headers = [])
|
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);
|
return static::createFromThrowable($exception, $statusCode, $headers);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user