Proper default null value in reset()
This commit is contained in:
parent
8fb747a2e4
commit
5816f3cf7f
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue