public function ErrorHandler::traceAt in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/debug/ErrorHandler.php \Symfony\Component\Debug\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:
Return value
int The previous value
File
- vendor/
symfony/ debug/ ErrorHandler.php, line 293
Class
- ErrorHandler
- A generic ErrorHandler for the PHP engine.
Namespace
Symfony\Component\DebugCode
public function traceAt($levels, $replace = false) {
$prev = $this->tracedErrors;
$this->tracedErrors = (int) $levels;
if (!$replace) {
$this->tracedErrors |= $prev;
}
return $prev;
}