Skip to content

Commit 41d8520

Browse files
committed
default initialization of Exception.code
1 parent 43d10bf commit 41d8520

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Peachpie.Library/Exceptions/Exception.cs

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ private PhpArray/*!*/trace
3939
[PhpFieldsOnlyCtor]
4040
protected Exception()
4141
{
42+
this.code = PhpValue.Null;
43+
this.message = PhpValue.Null;
4244
}
4345

4446
public Exception(string message = "", long code = 0, Throwable previous = null)

0 commit comments

Comments
 (0)