[Debug] Remove superfluous deprecation notice

This commit is contained in:
Robin Chalas 2019-08-23 12:15:49 +02:00
parent 5255ab89d2
commit 5dd6468ec1

View File

@ -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);
}