<?php error_reporting(?int $error_level = null): int
<?php public static function handle($level, $message, $file, $line) { if (!(error_reporting() & $level)) { return true; }
<?php public static function register(IOInterface $io = null) { set_error_handler(array(__CLASS__, 'handle')); error_reporting(E_ALL | E_STRICT); self::$io = $io; } }
<?php if (!isset($mask)) { $mask = E_WARNING | E_NOTICE | E_USER_WARNING | E_USER_NOTICE | E_DEPRECATED | E_USER_DEPRECATED | E_STRICT; } $old = error_reporting(); self::$stack[] = $old; error_reporting($old & ~$mask);
<?php } $old = error_reporting(); self::$stack[] = $old; error_reporting($old & ~$mask); return $old; }
<?php public static function restore() { if (!empty(self::$stack)) { error_reporting(array_pop(self::$stack)); } }
<?php use Composer\Util\Platform; error_reporting(E_ALL); if (function_exists('date_default_timezone_set') && function_exists('date_default_timezone_get')) { date_default_timezone_set(@date_default_timezone_get());
<?php public function testSilencer() { $before = error_reporting(); Silencer::suppress();
<?php $this->assertEquals(24, $result); $this->assertEquals($before, error_reporting()); }