blob as ArraySegment<byte>
Publish PHP Package / docker (push) Successful in 7s Details

This commit is contained in:
wrenge 2025-01-20 15:18:11 +03:00
parent 5cca57b440
commit 1fe32aecb3
1 changed files with 2 additions and 2 deletions

View File

@ -256,7 +256,7 @@ function cs_simple_type(\mtgType $type)
case "bool":
return "bool";
case "blob":
return "byte[]";
return "ArraySegment<byte>";
}
throw new Exception("Unknown type '{$type}'");
}
@ -367,7 +367,7 @@ function var_reset($name, \mtgType $type, $default = null)
$str .= " = ".trim($default, '"').";";
}
else
$str .= ' = null;';
$str .= ' = default;';
}
else
throw new Exception("Unknown type '$type'");