Drupal investigation

FatalErrorHandlerInterface.php 959B

123456789101112131415161718192021222324252627282930313233
  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\FatalErrorHandler;
  11. use Symfony\Component\Debug\Exception\FatalErrorException;
  12. /**
  13. * Attempts to convert fatal errors to exceptions.
  14. *
  15. * @author Fabien Potencier <fabien@symfony.com>
  16. */
  17. interface FatalErrorHandlerInterface
  18. {
  19. /**
  20. * Attempts to convert an error into an exception.
  21. *
  22. * @param array $error An array as returned by error_get_last()
  23. * @param FatalErrorException $exception A FatalErrorException instance
  24. *
  25. * @return FatalErrorException|null A FatalErrorException instance if the class is able to convert the error, null otherwise
  26. */
  27. public function handleError(array $error, FatalErrorException $exception);
  28. }