File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
tests/src/integration/class Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -196,7 +196,8 @@ impl<'a> Function<'a> {
196
196
}
197
197
198
198
fn build_returns ( & self ) -> Option < TokenStream > {
199
- self . output . as_ref ( ) . map ( |output| {
199
+ self . output . cloned ( ) . map ( |mut output| {
200
+ output. drop_lifetimes ( ) ;
200
201
quote ! {
201
202
. returns(
202
203
<#output as :: ext_php_rs:: convert:: IntoZval >:: TYPE ,
Original file line number Diff line number Diff line change 12
12
assert ($ class ->getString () === 'dolor et ' );
13
13
$ class ->selfRef ("foo " );
14
14
assert ($ class ->getString () === 'Changed to foo ' );
15
+ $ class ->selfMultiRef ("bar " );
16
+ assert ($ class ->getString () === 'Changed to bar ' );
15
17
16
18
assert ($ class ->getNumber () === 2022 );
17
19
$ class ->setNumber (2023 );
Original file line number Diff line number Diff line change @@ -49,6 +49,14 @@ impl TestClass {
49
49
self_. string = format ! ( "Changed to {val}" ) ;
50
50
self_
51
51
}
52
+
53
+ pub fn self_multi_ref < ' a > (
54
+ self_ : & ' a mut ZendClassObject < TestClass > ,
55
+ val : & str ,
56
+ ) -> & ' a mut ZendClassObject < TestClass > {
57
+ self_. string = format ! ( "Changed to {val}" ) ;
58
+ self_
59
+ }
52
60
}
53
61
54
62
#[ php_function]
You can’t perform that action at this time.
0 commit comments