comparison vendor/symfony/debug/Exception/FatalErrorException.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents 5311817fb629
children
comparison
equal deleted inserted replaced
3:307d7a7fd348 4:a9cd425dd02b
29 } 29 }
30 } 30 }
31 31
32 $this->setTrace($trace); 32 $this->setTrace($trace);
33 } elseif (null !== $traceOffset) { 33 } elseif (null !== $traceOffset) {
34 if (function_exists('xdebug_get_function_stack')) { 34 if (\function_exists('xdebug_get_function_stack')) {
35 $trace = xdebug_get_function_stack(); 35 $trace = xdebug_get_function_stack();
36 if (0 < $traceOffset) { 36 if (0 < $traceOffset) {
37 array_splice($trace, -$traceOffset); 37 array_splice($trace, -$traceOffset);
38 } 38 }
39 39
58 } 58 }
59 } 59 }
60 60
61 unset($frame); 61 unset($frame);
62 $trace = array_reverse($trace); 62 $trace = array_reverse($trace);
63 } elseif (function_exists('symfony_debug_backtrace')) { 63 } elseif (\function_exists('symfony_debug_backtrace')) {
64 $trace = symfony_debug_backtrace(); 64 $trace = symfony_debug_backtrace();
65 if (0 < $traceOffset) { 65 if (0 < $traceOffset) {
66 array_splice($trace, 0, $traceOffset); 66 array_splice($trace, 0, $traceOffset);
67 } 67 }
68 } else { 68 } else {
69 $trace = array(); 69 $trace = [];
70 } 70 }
71 71
72 $this->setTrace($trace); 72 $this->setTrace($trace);
73 } 73 }
74 } 74 }