sapalymahabat/vendor/symfony/debug/Exception/UndefinedFunctionException.php

41 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2022-09-28 16:57:31 +00:00
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Debug\Exception;
2023-02-15 15:52:41 +00:00
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4, use "%s" instead.', UndefinedFunctionException::class, \Symfony\Component\ErrorHandler\Error\UndefinedFunctionError::class), \E_USER_DEPRECATED);
2022-09-28 16:57:31 +00:00
/**
* Undefined Function Exception.
*
* @author Konstanton Myakshin <koc-dp@yandex.ru>
2023-02-15 15:52:41 +00:00
*
* @deprecated since Symfony 4.4, use Symfony\Component\ErrorHandler\Error\UndefinedFunctionError instead.
2022-09-28 16:57:31 +00:00
*/
class UndefinedFunctionException extends FatalErrorException
{
2023-02-15 15:52:41 +00:00
public function __construct(string $message, \ErrorException $previous)
2022-09-28 16:57:31 +00:00
{
parent::__construct(
$message,
$previous->getCode(),
$previous->getSeverity(),
$previous->getFile(),
$previous->getLine(),
null,
true,
null,
$previous->getPrevious()
);
$this->setTrace($previous->getTrace());
}
}