[ErrorHandler] fix setting $trace to null in FatalError
This commit is contained in:
parent
5fe0f9490e
commit
aa50c9287c
@ -72,9 +72,11 @@ class FatalError extends \Error
|
|||||||
'line' => $error['line'],
|
'line' => $error['line'],
|
||||||
'trace' => $trace,
|
'trace' => $trace,
|
||||||
] as $property => $value) {
|
] as $property => $value) {
|
||||||
$refl = new \ReflectionProperty(\Error::class, $property);
|
if (null !== $value) {
|
||||||
$refl->setAccessible(true);
|
$refl = new \ReflectionProperty(\Error::class, $property);
|
||||||
$refl->setValue($this, $value);
|
$refl->setAccessible(true);
|
||||||
|
$refl->setValue($this, $value);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user