Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow ZendClassObject as self parameter #103

Merged
merged 4 commits into from
Oct 10, 2021
Merged

Conversation

davidcole1340
Copy link
Owner

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
1 participant