You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Structs. Data type would be object, and the struct fields would be read from the objects properties. Primarily for passing stdClass into Rust. Example:
I like it. It should be paired with a IntoZval as well.
Something worth keeping an eye on is PHP 8.1 enums. I don't think this should conflict through: a reasonable approach is probably to either add a new #[php_enum] attribute (or make php_class smarter - idk how its implemented under the hood) and make sure that its mutually exclusive from these derive macros.
Ability to derive
FromZval
(and potentiallyIntoZval
) using a derive macro. Could be used in two situations:stdClass
into Rust. Example:The text was updated successfully, but these errors were encountered: