File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ public function __construct(
136
136
?\Throwable $ previous = null ,
137
137
private ?array $ meta = null ,
138
138
private ?array $ source = null ,
139
+ private ?string $ description = null ,
139
140
) {
140
141
parent ::__construct ($ title , $ status , $ previous );
141
142
@@ -186,7 +187,12 @@ public function getSource(): ?array
186
187
#[ApiProperty(writable: false , initializable: false )]
187
188
public function getDescription (): ?string
188
189
{
189
- return $ this ->detail ;
190
+ return $ this ->description ?? $ this ->detail ;
191
+ }
192
+
193
+ public function setDescription (?string $ description = null ): void
194
+ {
195
+ $ this ->description = $ description ;
190
196
}
191
197
192
198
public static function createFromException (\Exception |\Throwable $ exception , int $ status ): self
You can’t perform that action at this time.
0 commit comments