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