8000 [ErrorHandler] Added missing type annotations to FlattenException by derrabus · Pull Request #40388 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[ErrorHandler] Added missing type annotations to FlattenException #40388

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,40 @@
*/
class FlattenException extends LegacyFlattenException
{
/** @var string */
private $message;

/** @var int|string */
private $code;

/** @var self|null */
private $previous;

/** @var array */
private $trace;

/** @var string */
private $traceAsString;

/** @var string */
private $class;

/** @var int */
private $statusCode;

/** @var string */
private $statusText;

/** @var array */
private $headers;

/** @var string */
private $file;

/** @var int */
private $line;

/** @var string|null */
private $asString;

public static function create(\Exception $exception, $statusCode = null, array $headers = []): self
Expand Down Expand Up @@ -104,6 +127,8 @@ public function getStatusCode(): int
}

/**
* @param int $code
*
* @return $this
*/
public function setStatusCode($code): self
Expand Down Expand Up @@ -134,6 +159,8 @@ public function getClass(): string
}

/**
* @param string $class
*
* @return $this
*/
public function setClass($class): self
Expand All @@ -149,6 +176,8 @@ public function getFile(): string
}

/**
* @param string $file
*
* @return $this
*/
public function setFile($file): self
Expand All @@ -164,6 +193,8 @@ public function getLine(): int
}

/**
* @param int $line
*
* @return $this
*/
public function setLine($line): self
Expand Down Expand Up @@ -191,6 +222,8 @@ public function getMessage(): string
}

/**
* @param string $message
*
* @return $this
*/
public function setMessage($message): self
Expand All @@ -215,6 +248,8 @@ public function getCode()
}

/**
* @param int|string $code
*
* @return $this
*/
public function setCode($code): self
Expand Down Expand Up @@ -282,6 +317,10 @@ public function setTraceFromThrowable(\Throwable $throwable): self
}

/**
* @param array $trace
* @param string|null $file
* @param int|null $line
*
* @return $this
*/
public function setTrace($trace, $file, $line): self
Expand Down
0