function DeprecationListenerTrait::removeErrorHandler
Removes the error handler if registered.
See also
\Drupal\Tests\Listeners\DeprecationListenerTrait::registerErrorHandler()
1 call to DeprecationListenerTrait::removeErrorHandler()
- DrupalListener::endTest in core/
tests/ Drupal/ Tests/ Listeners/ DrupalListener.php
File
-
core/
tests/ Drupal/ Tests/ Listeners/ DeprecationListenerTrait.php, line 182
Class
- DeprecationListenerTrait
- Removes deprecations that we are yet to fix.
Namespace
Drupal\Tests\ListenersCode
protected function removeErrorHandler() : void {
if ($this->previousHandler) {
$this->previousHandler = NULL;
restore_error_handler();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.