Без опису

UndefinedFunctionException.php 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Component\Debug\Exception;
  11. @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);
  12. /**
  13. * Undefined Function Exception.
  14. *
  15. * @author Konstanton Myakshin <koc-dp@yandex.ru>
  16. *
  17. * @deprecated since Symfony 4.4, use Symfony\Component\ErrorHandler\Error\UndefinedFunctionError instead.
  18. */
  19. class UndefinedFunctionException extends FatalErrorException
  20. {
  21. public function __construct(string $message, \ErrorException $previous)
  22. {
  23. parent::__construct(
  24. $message,
  25. $previous->getCode(),
  26. $previous->getSeverity(),
  27. $previous->getFile(),
  28. $previous->getLine(),
  29. null,
  30. true,
  31. null,
  32. $previous->getPrevious()
  33. );
  34. $this->setTrace($previous->getTrace());
  35. }
  36. }