Remove unnecessary code
``` php > echo (E_ALL | E_STRICT) & (0 | E_RECOVERABLE_ERROR | E_USER_ERROR) & ~E_USER_DEPRECATED & ~E_DEPRECATED; 4352 php > echo (0 | E_RECOVERABLE_ERROR | E_USER_ERROR) & ~E_USER_DEPRECATED & ~E_DEPRECATED; 4352 php > echo (2 | E_RECOVERABLE_ERROR | E_USER_ERROR) & ~E_USER_DEPRECATED & ~E_DEPRECATED; 4354 ```
This commit is contained in:
parent
15c37c2442
commit
548d803415
@ -257,7 +257,7 @@ class ErrorHandler
|
|||||||
public function throwAt($levels, $replace = false)
|
public function throwAt($levels, $replace = false)
|
||||||
{
|
{
|
||||||
$prev = $this->thrownErrors;
|
$prev = $this->thrownErrors;
|
||||||
$this->thrownErrors = (E_ALL | E_STRICT) & ($levels | E_RECOVERABLE_ERROR | E_USER_ERROR) & ~E_USER_DEPRECATED & ~E_DEPRECATED;
|
$this->thrownErrors = ($levels | E_RECOVERABLE_ERROR | E_USER_ERROR) & ~E_USER_DEPRECATED & ~E_DEPRECATED;
|
||||||
if (!$replace) {
|
if (!$replace) {
|
||||||
$this->thrownErrors |= $prev;
|
$this->thrownErrors |= $prev;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user