Skip to content

Returning $this #502

@kakserpom

Description

@kakserpom
#[php_class]
struct Foo {}
#[php_impl]
impl Foo {
    pub fn someMethod(&mut self) -> &mut Self {
        self
    }
}
error[E0277]: the trait bound `&mut PhpClassImplCollector<Foo>: IntoZval` is not satisfied
 --> src/lib.rs:7:37
  |
7 |     pub fn someMethod(&mut self) -> &mut Self {
  |                                     ^^^^^^^^^ the trait `IntoZval` is not implemented for `&mut PhpClassImplCollector<Foo>`
  |

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions