public function ErrorHandler::screamAt in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/debug/ErrorHandler.php \Symfony\Component\Debug\ErrorHandler::screamAt()
Sets the error levels where the @-operator is ignored.
Parameters
int $levels A bit field of E_* constants for screamed errors:
bool $replace Replace or amend the previous value:
Return value
int The previous value
File
- vendor/
symfony/ debug/ ErrorHandler.php, line 312
Class
- ErrorHandler
- A generic ErrorHandler for the PHP engine.
Namespace
Symfony\Component\DebugCode
public function screamAt($levels, $replace = false) {
$prev = $this->screamedErrors;
$this->screamedErrors = (int) $levels;
if (!$replace) {
$this->screamedErrors |= $prev;
}
return $prev;
}