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