Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ErrorHandler.php

function ErrorHandler::disable

File

vendor/phpunit/phpunit/src/Runner/ErrorHandler.php, line 194

Class

ErrorHandler
@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

Namespace

PHPUnit\Runner

Code

public function disable() : void {
    if (!$this->enabled) {
        return;
    }
    restore_error_handler();
    error_reporting(error_reporting() | $this->originalErrorReportingLevel);
    $this->enabled = false;
    $this->originalErrorReportingLevel = null;
}
RSS feed
Powered by Drupal