8000 [ErrorHandler] Added missing type annotations to FlattenException · symfony/symfony@e651789 · GitHub
[go: up one dir, main page]

Skip to content

Commit e651789

Browse files
committed
[ErrorHandler] Added missing type annotations to FlattenException
1 parent 13055b6 commit e651789

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

src/Symfony/Component/ErrorHandler/Exception/FlattenException.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,40 @@
2626
*/
2727
class FlattenException extends LegacyFlattenException
2828
{
29+
/** @var string */
2930
private $message;
31+
32+
/** @var int|string */
3033
private $code;
34+
35+
/** @var self|null */
3136
private $previous;
37+
38+
/** @var array */
3239
private $trace;
40+
41+
/** @var string */
3342
private $traceAsString;
43+
44+
/** @var string */
3445
private $class;
46+
47+
/** @var int */
3548
private $statusCode;
49+
50+
/** @var string */
3651
private $statusText;
52+
53+
/** @var array */
3754
private $headers;
55+
56+
/** @var string|null */
3857
private $file;
58+
59+
/** @var int|null */
3960
private $line;
61+
62+
/** @var string|null */
4063
private $asString;
4164

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

106129
/**
130+
* @param int $code
131+
*
107132
* @return $this
108133
*/
109134
public function setStatusCode($code): self
@@ -134,6 +159,8 @@ public function getClass(): string
134159
}
135160

136161
/**
162+
* @param string $class
163+
*
137164
* @return $this
138165
*/
139166
public function setClass($class): self
@@ -149,6 +176,8 @@ public function getFile(): string
149176
}
150177

151178
/**
179+
* @param string|null $file
180+
*
152181
* @return $this
153182
*/
154183
public function setFile($file): self
@@ -164,6 +193,8 @@ public function getLine(): int
164193
}
165194

166195
/**
196+
* @param int|null $line
197+
*
167198
* @return $this
168199
*/
169200
public function setLine($line): self
@@ -191,6 +222,8 @@ public function getMessage(): string
191222
}
192223

193224
/**
225+
* @param string $message
226+
*
194227
* @return $this
195228
*/
196229
public function setMessage($message): self
@@ -215,6 +248,8 @@ public function getCode()
215248
}
216249

217250
/**
251+
* @param int|string $code
252+
*
218253
* @return $this
219254
*/
220255
public function setCode($code): self
@@ -282,6 +317,10 @@ public function setTraceFromThrowable(\Throwable $throwable): self
282317
}
283318

284319
/**
320+
* @param array $trace
321+
* @param string|null $file
322+
* @param int|null $line
323+
*
285324
* @return $this
286325
*/
287326
public function setTrace($trace, $file, $line): self

0 commit comments

Comments
 (0)
0