Using C# built-in initialization routines instead of MetaIO's methods
Publish PHP Package / docker (push) Successful in 6s Details

This commit is contained in:
Pavel Shevaev 2024-03-26 11:21:32 +03:00
parent 08d4535d4f
commit fa795772bf
1 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ function var_reset($name, \mtgType $type, $default = null)
}
else if($type instanceof \mtgArrType)
{
$str = "MetaIO.ClearList(ref $name);";
$str = "if($name == null) $name = new(); else $name.Clear();";
if($default)
{
@ -390,7 +390,7 @@ function var_reset($name, \mtgType $type, $default = null)
if($is_pod)
$str .= "$name.Reset(); ";
else
$str .= "MetaIO.Reset(ref $name); ";
$str .= "if($name == null) $name = new(); else $name.Reset(); ";
}
if($default)