Skip to content

Commit 17a14af

Browse files
committed
Merge branch '4.4' into 5.2
* 4.4: Update translations for Norwegian Nynorsk (nn) #38756 Fix eventListener initialization when eventSubscriber constructor dispatch an event clear unchecked choice radio boxes even if clear missing is set to false [ErrorHandler] Added missing type annotations to FlattenException [TwigBridge] Allow version 3 of the Twig extra packages Fix FrameworkBundle PropertyAccess definition when not in debug
2 parents b547d3b + 48e81a3 commit 17a14af

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

Exception/FlattenException.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,40 @@
2424
*/
2525
class FlattenException
2626
{
27+
/** @var string */
2728
private $message;
29+
30+
/** @var int|string */
2831
private $code;
32+
33+
/** @var self|null */
2934
private $previous;
35+
36+
/** @var array */
3037
private $trace;
38+
39+
/** @var string */
3140
private $traceAsString;
41+
42+
/** @var string */
3243
private $class;
44+
45+
/** @var int */
3346
private $statusCode;
47+
48+
/** @var string */
3449
private $statusText;
50+
51+
/** @var array */
3552
private $headers;
53+
54+
/** @var string */
3655
private $file;
56+
57+
/** @var int */
3758
private $line;
59+
60+
/** @var string|null */
3861
private $asString;
3962

4063
/**
@@ -108,6 +131,8 @@ public function getStatusCode(): int
108131
}
109132

110133
/**
134+
* @param int $code
135+
*
111136
* @return $this
112137
*/
113138
public function setStatusCode($code): self
@@ -138,6 +163,8 @@ public function getClass(): string
138163
}
139164

140165
/**
166+
* @param string $class
167+
*
141168
* @return $this
142169
*/
143170
public function setClass($class): self
@@ -153,6 +180,8 @@ public function getFile(): string
153180
}
154181

155182
/**
183+
* @param string $file
184+
*
156185
* @return $this
157186
*/
158187
public function setFile($file): self
@@ -168,6 +197,8 @@ public function getLine(): int
168197
}
169198

170199
/**
200+
* @param int $line
201+
*
171202
* @return $this
172203
*/
173204
public function setLine($line): self
@@ -195,6 +226,8 @@ public function getMessage(): string
195226
}
196227

197228
/**
229+
* @param string $message
230+
*
198231
* @return $this
199232
*/
200233
public function setMessage($message): self
@@ -219,6 +252,8 @@ public function getCode()
219252
}
220253

221254
/**
255+
* @param int|string $code
256+
*
222257
* @return $this
223258
*/
224259
public function setCode($code): self
@@ -273,6 +308,10 @@ public function setTraceFromThrowable(\Throwable $throwable): self
273308
}
274309

275310
/**
311+
* @param array $trace
312+
* @param string|null $file
313+
* @param int|null $line
314+
*
276315
* @return $this
277316
*/
278317
public function setTrace($trace, $file, $line): self

0 commit comments

Comments
 (0)