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 99
1010final class Test extends Exception implements ExtPhpRs \Interface \EmptyObjectInterface
1111{
12+ public function __construct ()
13+ {
14+ }
15+
1216 public static function void (): void
1317 {
1418 }
@@ -24,6 +28,10 @@ public function refToLikeThisClass(
2428 ): string {
2529 return sprintf ('%s | %s ' , $ this ->nonStatic ($ data ), $ other ->nonStatic ($ data ));
2630 }
31+
32+ public function setValue (?int $ value = 0 ) {
33+
34+ }
2735}
2836$ f = new Test ();
2937
Original file line number Diff line number Diff line change 11use ext_php_rs:: types:: ZendClassObject ;
22use 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 ;
55
66#[ php_interface]
77#[ php( extends( ce = ce:: throwable, stub = "\\ Throwable" ) ) ]
@@ -20,6 +20,9 @@ pub trait EmptyObjectTrait {
2020 data : String ,
2121 other : & ZendClassObject < PhpInterfaceEmptyObjectTrait > ,
2222 ) -> String ;
23+
24+ #[ php( defaults( value = 0 ) ) ]
25+ fn set_value ( & mut self , value : i32 ) ;
2326}
2427
2528pub fn build_module ( builder : ModuleBuilder ) -> ModuleBuilder {
You can’t perform that action at this time.
0 commit comments