From 5816f3cf7f4dcca16a68be7fdee218ee526d46ba Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Fri, 5 May 2023 12:38:16 +0300 Subject: [PATCH] Proper default null value in reset() --- src/codegen.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen.inc.php b/src/codegen.inc.php index 72d00de..643a835 100644 --- a/src/codegen.inc.php +++ b/src/codegen.inc.php @@ -369,7 +369,7 @@ function var_reset($name, \mtgType $type, $default = null) } } else if($default === null) - $str .= "$name = default; "; + $str .= "$name = null; "; else throw new Exception("Bad default value for struct: " . var_export($default, true)); }