File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
tests/src/integration/interface Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
final class Test extends Exception implements ExtPhpRs \Interface \EmptyObjectInterface
11
11
{
12
+ public function __construct ()
13
+ {
14
+ }
15
+
12
16
public static function void (): void
13
17
{
14
18
}
@@ -24,6 +28,10 @@ public function refToLikeThisClass(
24
28
): string {
25
29
return sprintf ('%s | %s ' , $ this ->nonStatic ($ data ), $ other ->nonStatic ($ data ));
26
30
}
31
+
32
+ public function setValue (?int $ value = 0 ) {
33
+
34
+ }
27
35
}
28
36
$ f = new Test ();
29
37
Original file line number Diff line number Diff line change 1
1
use ext_php_rs:: types:: ZendClassObject ;
2
2
use ext_php_rs:: zend:: ce;
3
- use ext_php_rs:: { php_class , php_impl , php_interface} ;
4
- use ext_php_rs:: { php_module , prelude:: ModuleBuilder } ;
3
+ use ext_php_rs:: php_interface;
4
+ use ext_php_rs:: prelude:: ModuleBuilder ;
5
5
6
6
#[ php_interface]
7
7
#[ php( extends( ce = ce:: throwable, stub = "\\ Throwable" ) ) ]
@@ -20,6 +20,9 @@ pub trait EmptyObjectTrait {
20
20
data : String ,
21
21
other : & ZendClassObject < PhpInterfaceEmptyObjectTrait > ,
22
22
) -> String ;
23
+
24
+ #[ php( defaults( value = 0 ) ) ]
25
+ fn set_value ( & mut self , value : i32 ) ;
23
26
}
24
27
25
28
pub fn build_module ( builder : ModuleBuilder ) -> ModuleBuilder {
You can’t perform that action at this time.
0 commit comments