public function ErrorHandler::setDisplayErrors in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/debug/ErrorHandler.php \Symfony\Component\Debug\ErrorHandler::setDisplayErrors()
Sets the display_errors flag value.
Parameters
int $displayErrors The display_errors flag value:
Deprecated
since version 2.6, to be removed in 3.0. Use throwAt() instead.
File
- vendor/
symfony/ debug/ ErrorHandler.php, line 650
Class
- ErrorHandler
- A generic ErrorHandler for the PHP engine.
Namespace
Symfony\Component\DebugCode
public function setDisplayErrors($displayErrors) {
@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);
if ($displayErrors) {
$this
->throwAt($this->displayErrors, true);
}
else {
$displayErrors = $this->displayErrors;
$this
->throwAt(0, true);
$this->displayErrors = $displayErrors;
}
}