Skip to content

Conversation

@davidcole1340
Copy link
Collaborator

Can now take self parameter as ZendClassObject<T>. Example:

#[php_impl]
impl Example {
  pub fn example(#[this] this: &mut ZendClassObject<Example>) {
    dbg!(this);
  }
}

@davidcole1340 davidcole1340 merged commit b47f8ba into master Oct 10, 2021
@davidcole1340 davidcole1340 deleted the class_object_self branch October 10, 2021 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability for methods to take &ZendClassObject<T> in place of &self

2 participants