Content-Length: 245683 | pFad | http://github.com/symfony/debug/commit/45b2136377cca5f10af858968d6079a482bca473

52 Avoid warning with Xdebug 3 with develop mode disabled · symfony/debug@45b2136 · GitHub
Skip to content
This repository was archived by the owner on Dec 9, 2023. It is now read-only.

Commit 45b2136

Browse files
committed
Avoid warning with Xdebug 3 with develop mode disabled
1 parent 157bbec commit 45b2136

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: Exception/FatalErrorException.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ public function __construct(string $message, int $code, int $severity, string $f
3535

3636
$this->setTrace($trace);
3737
} elseif (null !== $traceOffset) {
38-
if (\function_exists('xdebug_get_function_stack')) {
39-
$trace = xdebug_get_function_stack();
38+
if (\function_exists('xdebug_get_function_stack') && $trace = @xdebug_get_function_stack()) {
4039
if (0 < $traceOffset) {
4140
array_splice($trace, -$traceOffset);
4241
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/symfony/debug/commit/45b2136377cca5f10af858968d6079a482bca473

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy