Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
Avoid warning with Xdebug 3 with develop mode disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Apr 2, 2021
1 parent 157bbec commit 45b2136
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Exception/FatalErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 45b2136

Please sign in to comment.