Avoid warning with Xdebug 3 with develop mode disabled
This commit is contained in:
parent
4e4cdf548c
commit
0e0639b129
@ -35,8 +35,7 @@ class FatalErrorException extends \ErrorException
|
|||||||
|
|
||||||
$this->setTrace($trace);
|
$this->setTrace($trace);
|
||||||
} elseif (null !== $traceOffset) {
|
} elseif (null !== $traceOffset) {
|
||||||
if (\function_exists('xdebug_get_function_stack')) {
|
if (\function_exists('xdebug_get_function_stack') && $trace = @xdebug_get_function_stack()) {
|
||||||
$trace = xdebug_get_function_stack();
|
|
||||||
if (0 < $traceOffset) {
|
if (0 < $traceOffset) {
|
||||||
array_splice($trace, -$traceOffset);
|
array_splice($trace, -$traceOffset);
|
||||||
}
|
}
|
||||||
|
@ -33,8 +33,7 @@ class FatalError extends \Error
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif (null !== $traceOffset) {
|
} elseif (null !== $traceOffset) {
|
||||||
if (\function_exists('xdebug_get_function_stack')) {
|
if (\function_exists('xdebug_get_function_stack') && $trace = @xdebug_get_function_stack()) {
|
||||||
$trace = xdebug_get_function_stack();
|
|
||||||
if (0 < $traceOffset) {
|
if (0 < $traceOffset) {
|
||||||
array_splice($trace, -$traceOffset);
|
array_splice($trace, -$traceOffset);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user