mirror of
https://github.com/danog/ext-php-rs.git
synced 2025-01-22 21:11:45 +01:00
Change datatype of unit type to void
Null is invalid type apparently
This commit is contained in:
parent
8b0adf1de6
commit
8b3ed08882
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user