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

Breadcrumb

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

function Silencer::restore

Restores a single state.

3 calls to Silencer::restore()
Application::hintCommonErrors in vendor/composer/composer/src/Composer/Console/Application.php
HttpDownloader::getExceptionHints in vendor/composer/composer/src/Composer/Util/HttpDownloader.php
@internal
Silencer::call in vendor/composer/composer/src/Composer/Util/Silencer.php
Calls a specified function while silencing warnings and below.

File

vendor/composer/composer/src/Composer/Util/Silencer.php, line 48

Class

Silencer
Temporarily suppress PHP error reporting, usually warnings and below.

Namespace

Composer\Util

Code

public static function restore() : void {
    if (!empty(self::$stack)) {
        error_reporting(array_pop(self::$stack));
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal