update2
This commit is contained in:
parent
98419bd18d
commit
8a69e45efa
4919 changed files with 28311 additions and 224136 deletions
3
pfosten/vendor/symfony/debug/Exception/ClassNotFoundException.php
vendored
Executable file → Normal file
3
pfosten/vendor/symfony/debug/Exception/ClassNotFoundException.php
vendored
Executable file → Normal file
|
|
@ -26,6 +26,9 @@ class ClassNotFoundException extends FatalErrorException
|
|||
$previous->getSeverity(),
|
||||
$previous->getFile(),
|
||||
$previous->getLine(),
|
||||
null,
|
||||
true,
|
||||
null,
|
||||
$previous->getPrevious()
|
||||
);
|
||||
$this->setTrace($previous->getTrace());
|
||||
|
|
|
|||
2
pfosten/vendor/symfony/debug/Exception/ContextErrorException.php
vendored
Executable file → Normal file
2
pfosten/vendor/symfony/debug/Exception/ContextErrorException.php
vendored
Executable file → Normal file
|
|
@ -33,7 +33,7 @@ class ContextErrorException extends \ErrorException
|
|||
*/
|
||||
public function getContext()
|
||||
{
|
||||
@trigger_error(sprintf('The %s class is deprecated since version 3.3 and will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
|
||||
@trigger_error(sprintf('The %s class is deprecated since Symfony 3.3 and will be removed in 4.0.', __CLASS__), E_USER_DEPRECATED);
|
||||
|
||||
return $this->context;
|
||||
}
|
||||
|
|
|
|||
8
pfosten/vendor/symfony/debug/Exception/FatalErrorException.php
vendored
Executable file → Normal file
8
pfosten/vendor/symfony/debug/Exception/FatalErrorException.php
vendored
Executable file → Normal file
|
|
@ -18,9 +18,9 @@ namespace Symfony\Component\Debug\Exception;
|
|||
*/
|
||||
class FatalErrorException extends \ErrorException
|
||||
{
|
||||
public function __construct($message, $code, $severity, $filename, $lineno, $traceOffset = null, $traceArgs = true, array $trace = null)
|
||||
public function __construct($message, $code, $severity, $filename, $lineno, $traceOffset = null, $traceArgs = true, array $trace = null, $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $severity, $filename, $lineno);
|
||||
parent::__construct($message, $code, $severity, $filename, $lineno, $previous);
|
||||
|
||||
if (null !== $trace) {
|
||||
if (!$traceArgs) {
|
||||
|
|
@ -31,7 +31,7 @@ class FatalErrorException extends \ErrorException
|
|||
|
||||
$this->setTrace($trace);
|
||||
} elseif (null !== $traceOffset) {
|
||||
if (function_exists('xdebug_get_function_stack')) {
|
||||
if (\function_exists('xdebug_get_function_stack')) {
|
||||
$trace = xdebug_get_function_stack();
|
||||
if (0 < $traceOffset) {
|
||||
array_splice($trace, -$traceOffset);
|
||||
|
|
@ -60,7 +60,7 @@ class FatalErrorException extends \ErrorException
|
|||
|
||||
unset($frame);
|
||||
$trace = array_reverse($trace);
|
||||
} elseif (function_exists('symfony_debug_backtrace')) {
|
||||
} elseif (\function_exists('symfony_debug_backtrace')) {
|
||||
$trace = symfony_debug_backtrace();
|
||||
if (0 < $traceOffset) {
|
||||
array_splice($trace, 0, $traceOffset);
|
||||
|
|
|
|||
3
pfosten/vendor/symfony/debug/Exception/FatalThrowableError.php
vendored
Executable file → Normal file
3
pfosten/vendor/symfony/debug/Exception/FatalThrowableError.php
vendored
Executable file → Normal file
|
|
@ -36,7 +36,8 @@ class FatalThrowableError extends FatalErrorException
|
|||
$e->getCode(),
|
||||
$severity,
|
||||
$e->getFile(),
|
||||
$e->getLine()
|
||||
$e->getLine(),
|
||||
$e->getPrevious()
|
||||
);
|
||||
|
||||
$this->setTrace($e->getTrace());
|
||||
|
|
|
|||
18
pfosten/vendor/symfony/debug/Exception/FlattenException.php
vendored
Executable file → Normal file
18
pfosten/vendor/symfony/debug/Exception/FlattenException.php
vendored
Executable file → Normal file
|
|
@ -53,7 +53,7 @@ class FlattenException
|
|||
$e->setStatusCode($statusCode);
|
||||
$e->setHeaders($headers);
|
||||
$e->setTraceFromException($exception);
|
||||
$e->setClass(get_class($exception));
|
||||
$e->setClass(\get_class($exception));
|
||||
$e->setFile($exception->getFile());
|
||||
$e->setLine($exception->getLine());
|
||||
|
||||
|
|
@ -157,7 +157,7 @@ class FlattenException
|
|||
return $this->previous;
|
||||
}
|
||||
|
||||
public function setPrevious(FlattenException $previous)
|
||||
public function setPrevious(self $previous)
|
||||
{
|
||||
$this->previous = $previous;
|
||||
}
|
||||
|
|
@ -228,9 +228,9 @@ class FlattenException
|
|||
if ($value instanceof \__PHP_Incomplete_Class) {
|
||||
// is_object() returns false on PHP<=7.1
|
||||
$result[$key] = array('incomplete-object', $this->getClassNameFromIncomplete($value));
|
||||
} elseif (is_object($value)) {
|
||||
$result[$key] = array('object', get_class($value));
|
||||
} elseif (is_array($value)) {
|
||||
} elseif (\is_object($value)) {
|
||||
$result[$key] = array('object', \get_class($value));
|
||||
} elseif (\is_array($value)) {
|
||||
if ($level > 10) {
|
||||
$result[$key] = array('array', '*DEEP NESTED ARRAY*');
|
||||
} else {
|
||||
|
|
@ -238,13 +238,13 @@ class FlattenException
|
|||
}
|
||||
} elseif (null === $value) {
|
||||
$result[$key] = array('null', null);
|
||||
} elseif (is_bool($value)) {
|
||||
} elseif (\is_bool($value)) {
|
||||
$result[$key] = array('boolean', $value);
|
||||
} elseif (is_int($value)) {
|
||||
} elseif (\is_int($value)) {
|
||||
$result[$key] = array('integer', $value);
|
||||
} elseif (is_float($value)) {
|
||||
} elseif (\is_float($value)) {
|
||||
$result[$key] = array('float', $value);
|
||||
} elseif (is_resource($value)) {
|
||||
} elseif (\is_resource($value)) {
|
||||
$result[$key] = array('resource', get_resource_type($value));
|
||||
} else {
|
||||
$result[$key] = array('string', (string) $value);
|
||||
|
|
|
|||
0
pfosten/vendor/symfony/debug/Exception/OutOfMemoryException.php
vendored
Executable file → Normal file
0
pfosten/vendor/symfony/debug/Exception/OutOfMemoryException.php
vendored
Executable file → Normal file
14
pfosten/vendor/symfony/debug/Exception/SilencedErrorContext.php
vendored
Executable file → Normal file
14
pfosten/vendor/symfony/debug/Exception/SilencedErrorContext.php
vendored
Executable file → Normal file
|
|
@ -18,15 +18,20 @@ namespace Symfony\Component\Debug\Exception;
|
|||
*/
|
||||
class SilencedErrorContext implements \JsonSerializable
|
||||
{
|
||||
public $count = 1;
|
||||
|
||||
private $severity;
|
||||
private $file;
|
||||
private $line;
|
||||
private $trace;
|
||||
|
||||
public function __construct($severity, $file, $line)
|
||||
public function __construct($severity, $file, $line, array $trace = array(), $count = 1)
|
||||
{
|
||||
$this->severity = $severity;
|
||||
$this->file = $file;
|
||||
$this->line = $line;
|
||||
$this->trace = $trace;
|
||||
$this->count = $count;
|
||||
}
|
||||
|
||||
public function getSeverity()
|
||||
|
|
@ -44,12 +49,19 @@ class SilencedErrorContext implements \JsonSerializable
|
|||
return $this->line;
|
||||
}
|
||||
|
||||
public function getTrace()
|
||||
{
|
||||
return $this->trace;
|
||||
}
|
||||
|
||||
public function JsonSerialize()
|
||||
{
|
||||
return array(
|
||||
'severity' => $this->severity,
|
||||
'file' => $this->file,
|
||||
'line' => $this->line,
|
||||
'trace' => $this->trace,
|
||||
'count' => $this->count,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
3
pfosten/vendor/symfony/debug/Exception/UndefinedFunctionException.php
vendored
Executable file → Normal file
3
pfosten/vendor/symfony/debug/Exception/UndefinedFunctionException.php
vendored
Executable file → Normal file
|
|
@ -26,6 +26,9 @@ class UndefinedFunctionException extends FatalErrorException
|
|||
$previous->getSeverity(),
|
||||
$previous->getFile(),
|
||||
$previous->getLine(),
|
||||
null,
|
||||
true,
|
||||
null,
|
||||
$previous->getPrevious()
|
||||
);
|
||||
$this->setTrace($previous->getTrace());
|
||||
|
|
|
|||
3
pfosten/vendor/symfony/debug/Exception/UndefinedMethodException.php
vendored
Executable file → Normal file
3
pfosten/vendor/symfony/debug/Exception/UndefinedMethodException.php
vendored
Executable file → Normal file
|
|
@ -26,6 +26,9 @@ class UndefinedMethodException extends FatalErrorException
|
|||
$previous->getSeverity(),
|
||||
$previous->getFile(),
|
||||
$previous->getLine(),
|
||||
null,
|
||||
true,
|
||||
null,
|
||||
$previous->getPrevious()
|
||||
);
|
||||
$this->setTrace($previous->getTrace());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue