ext-php-rs icon indicating copy to clipboard operation
ext-php-rs copied to clipboard

Add zval type coersion

Open davidcole1340 opened this issue 4 years ago • 0 comments

Zval::string() will no longer attempt to convert a long into a string. Instead, this is done through the new function on the FromZval trait: from_zval_coerce, which broadly follows PHP's type juggling rules.

By default, downstream types do not have to implement this function, as its default is to call from_zval on the same type.

davidcole1340 avatar Oct 01 '21 09:10 davidcole1340