diff --git a/Exception/FatalErrorException.php b/Exception/FatalErrorException.php index a9fd7bb..fbdad4c 100644 --- a/Exception/FatalErrorException.php +++ b/Exception/FatalErrorException.php @@ -35,8 +35,7 @@ public function __construct(string $message, int $code, int $severity, string $f $this->setTrace($trace); } elseif (null !== $traceOffset) { - if (\function_exists('xdebug_get_function_stack')) { - $trace = xdebug_get_function_stack(); + if (\function_exists('xdebug_get_function_stack') && $trace = @xdebug_get_function_stack()) { if (0 < $traceOffset) { array_splice($trace, -$traceOffset); }