From 8b3ed088823ddb2daf80925fa1cbbcd785cc65c5 Mon Sep 17 00:00:00 2001 From: David Cole Date: Tue, 7 Sep 2021 23:21:08 +1200 Subject: [PATCH] Change datatype of unit type to void Null is invalid type apparently --- src/php/types/zval.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/php/types/zval.rs b/src/php/types/zval.rs index 9d5ce44..5f8cac9 100644 --- a/src/php/types/zval.rs +++ b/src/php/types/zval.rs @@ -564,7 +564,7 @@ try_into_zval_str!(String); try_into_zval_str!(&str); impl IntoZval for () { - const TYPE: DataType = DataType::Null; + const TYPE: DataType = DataType::Void; fn set_zval(self, zv: &mut Zval, _: bool) -> Result<()> { zv.set_null();