You are here

public function ErrorHandler::handle in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/debug/ErrorHandler.php \Symfony\Component\Debug\ErrorHandler::handle()

Deprecated

since version 2.6, to be removed in 3.0. Use handleError() instead.

File

vendor/symfony/debug/ErrorHandler.php, line 696

Class

ErrorHandler
A generic ErrorHandler for the PHP engine.

Namespace

Symfony\Component\Debug

Code

public function handle($level, $message, $file = 'unknown', $line = 0, $context = array()) {
  $this
    ->handleError(E_USER_DEPRECATED, 'The ' . __METHOD__ . ' method is deprecated since version 2.6 and will be removed in 3.0. Use the handleError() method instead.', __FILE__, __LINE__, array());
  return $this
    ->handleError($level, $message, $file, $line, (array) $context);
}