Skip to content

Commit 8b3ed08

Browse files
committed
Change datatype of unit type to void
Null is invalid type apparently
1 parent 8b0adf1 commit 8b3ed08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/php/types/zval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ try_into_zval_str!(String);
564564
try_into_zval_str!(&str);
565565

566566
impl IntoZval for () {
567-
const TYPE: DataType = DataType::Null;
567+
const TYPE: DataType = DataType::Void;
568568

569569
fn set_zval(self, zv: &mut Zval, _: bool) -> Result<()> {
570570
zv.set_null();

0 commit comments

Comments
 (0)