Skip to content

Commit

Permalink
Change datatype of unit type to void
Browse files Browse the repository at this point in the history
Null is invalid type apparently
  • Loading branch information
davidcole1340 committed Sep 7, 2021
1 parent 8b0adf1 commit 8b3ed08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/php/types/zval.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8b3ed08

Please sign in to comment.