function 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:
File
-
vendor/
symfony/ error-handler/ ErrorHandler.php, line 348
Class
- ErrorHandler
- A generic ErrorHandler for the PHP engine.
Namespace
Symfony\Component\ErrorHandlerCode
public function screamAt(int $levels, bool $replace = false) : int {
$prev = $this->screamedErrors;
$this->screamedErrors = $levels;
if (!$replace) {
$this->screamedErrors |= $prev;
}
return $prev;
}