Skip to content

Commit ea3ddbf

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Avoid warning with Xdebug 3 with develop mode disabled
2 parents bdb7fb4 + 76603a8 commit ea3ddbf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Error/FatalError.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ public function __construct(string $message, int $code, array $error, int $trace
3333
}
3434
}
3535
} elseif (null !== $traceOffset) {
36-
if (\function_exists('xdebug_get_function_stack')) {
37-
$trace = xdebug_get_function_stack();
36+
if (\function_exists('xdebug_get_function_stack') && $trace = @xdebug_get_function_stack()) {
3837
if (0 < $traceOffset) {
3938
array_splice($trace, -$traceOffset);
4039
}

0 commit comments

Comments
 (0)