minor #15566 [Debug/VarDumper] minor cleanups (nicolas-grekas)
This PR was merged into the 2.7 branch.
Discussion
----------
[Debug/VarDumper] minor cleanups
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | -
Commits
-------
f1d379d
[Debug/VarDumper] minor cleanups
This commit is contained in:
commit
c84a403557
@ -251,7 +251,7 @@ class ErrorHandler
|
|||||||
public function throwAt($levels, $replace = false)
|
public function throwAt($levels, $replace = false)
|
||||||
{
|
{
|
||||||
$prev = $this->thrownErrors;
|
$prev = $this->thrownErrors;
|
||||||
$this->thrownErrors = ($levels | E_RECOVERABLE_ERROR | E_USER_ERROR) & ~E_USER_DEPRECATED & ~E_DEPRECATED;
|
$this->thrownErrors = (E_ALL | E_STRICT) & ($levels | E_RECOVERABLE_ERROR | E_USER_ERROR) & ~E_USER_DEPRECATED & ~E_DEPRECATED;
|
||||||
if (!$replace) {
|
if (!$replace) {
|
||||||
$this->thrownErrors |= $prev;
|
$this->thrownErrors |= $prev;
|
||||||
}
|
}
|
||||||
|
@ -42,7 +42,7 @@ class ExceptionCaster
|
|||||||
|
|
||||||
public static function castError(\Error $e, array $a, Stub $stub, $isNested, $filter = 0)
|
public static function castError(\Error $e, array $a, Stub $stub, $isNested, $filter = 0)
|
||||||
{
|
{
|
||||||
return $e instanceof \Exception ? $a : self::filterExceptionArray($a, "\0Error\0", $filter);
|
return self::filterExceptionArray($a, "\0Error\0", $filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function castException(\Exception $e, array $a, Stub $stub, $isNested, $filter = 0)
|
public static function castException(\Exception $e, array $a, Stub $stub, $isNested, $filter = 0)
|
||||||
|
Reference in New Issue
Block a user