function ErrorHandler::traceAt
Sets the PHP error levels for which the stack trace is preserved.
Parameters
int $levels A bit field of E_* constants for traced errors:
bool $replace Replace or amend the previous value:
File
-
vendor/
symfony/ error-handler/ ErrorHandler.php, line 331
Class
- ErrorHandler
- A generic ErrorHandler for the PHP engine.
Namespace
Symfony\Component\ErrorHandlerCode
public function traceAt(int $levels, bool $replace = false) : int {
$prev = $this->tracedErrors;
$this->tracedErrors = $levels;
if (!$replace) {
$this->tracedErrors |= $prev;
}
return $prev;
}