Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite651789

Browse files
committed
[ErrorHandler] Added missing type annotations to FlattenException
1 parent13055b6 commite651789

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 FlattenExceptionextends 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
publicstaticfunctioncreate(\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
publicfunctionsetStatusCode($code):self
@@ -134,6 +159,8 @@ public function getClass(): string
134159
}
135160

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

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

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

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

217250
/**
251+
* @param int|string $code
252+
*
218253
* @return $this
219254
*/
220255
publicfunctionsetCode($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
publicfunctionsetTrace($trace,$file,$line):self

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp