public function ErrorHandler::setLevel in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/debug/ErrorHandler.php \Symfony\Component\Debug\ErrorHandler::setLevel()
Sets the level at which the conversion to Exception is done.
Parameters
int|null $level The level (null to use the error_reporting() value and 0 to disable):
Deprecated
since version 2.6, to be removed in 3.0. Use throwAt() instead.
File
- vendor/
symfony/ debug/ ErrorHandler.php, line 635
Class
- ErrorHandler
- A generic ErrorHandler for the PHP engine.
Namespace
Symfony\Component\DebugCode
public function setLevel($level) {
@trigger_error('The ' . __METHOD__ . ' method is deprecated since version 2.6 and will be removed in 3.0. Use the throwAt() method instead.', E_USER_DEPRECATED);
$level = null === $level ? error_reporting() : $level;
$this
->throwAt($level, true);
}