Using C# built-in initialization routines instead of MetaIO's methods
Publish PHP Package / docker (push) Successful in 6s
Details
Publish PHP Package / docker (push) Successful in 6s
Details
This commit is contained in:
parent
08d4535d4f
commit
fa795772bf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue