mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-09 08:23:53 +09:00
Updates to vendors etc
This commit is contained in:
@@ -13,17 +13,19 @@ namespace Symfony\Component\ErrorHandler\Error;
|
||||
|
||||
class FatalError extends \Error
|
||||
{
|
||||
private array $error;
|
||||
|
||||
/**
|
||||
* @param array $error An array as returned by error_get_last()
|
||||
*/
|
||||
public function __construct(string $message, int $code, array $error, ?int $traceOffset = null, bool $traceArgs = true, ?array $trace = null)
|
||||
{
|
||||
public function __construct(
|
||||
string $message,
|
||||
int $code,
|
||||
private array $error,
|
||||
?int $traceOffset = null,
|
||||
bool $traceArgs = true,
|
||||
?array $trace = null,
|
||||
) {
|
||||
parent::__construct($message, $code);
|
||||
|
||||
$this->error = $error;
|
||||
|
||||
if (null !== $trace) {
|
||||
if (!$traceArgs) {
|
||||
foreach ($trace as &$frame) {
|
||||
@@ -31,7 +33,7 @@ class FatalError extends \Error
|
||||
}
|
||||
}
|
||||
} elseif (null !== $traceOffset) {
|
||||
if (\function_exists('xdebug_get_function_stack') && $trace = @xdebug_get_function_stack()) {
|
||||
if (\function_exists('xdebug_get_function_stack') && \in_array(\ini_get('xdebug.mode'), ['develop', false], true) && $trace = @xdebug_get_function_stack()) {
|
||||
if (0 < $traceOffset) {
|
||||
array_splice($trace, -$traceOffset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user