Change datatype of unit type to void

Null is invalid type apparently
This commit is contained in:
David Cole 2021-09-07 23:21:08 +12:00
parent 8b0adf1de6
commit 8b3ed08882

View File

@ -564,7 +564,7 @@ try_into_zval_str!(String);
try_into_zval_str!(&str); try_into_zval_str!(&str);
impl IntoZval for () { impl IntoZval for () {
const TYPE: DataType = DataType::Null; const TYPE: DataType = DataType::Void;
fn set_zval(self, zv: &mut Zval, _: bool) -> Result<()> { fn set_zval(self, zv: &mut Zval, _: bool) -> Result<()> {
zv.set_null(); zv.set_null();