You are here

public static function ErrorHandler::clean in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-stdlib/src/ErrorHandler.php \Zend\Stdlib\ErrorHandler::clean()

Stop all active handler

Return value

void

File

vendor/zendframework/zend-stdlib/src/ErrorHandler.php, line 92

Class

ErrorHandler
ErrorHandler that can be used to catch internal PHP errors and convert to an ErrorException instance.

Namespace

Zend\Stdlib

Code

public static function clean() {
  if (static::$stack) {
    restore_error_handler();
  }
  static::$stack = [];
}