Proper default null value in reset()

This commit is contained in:
Pavel Shevaev 2023-05-05 12:38:16 +03:00
parent 8fb747a2e4
commit 5816f3cf7f
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}