File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
tests/src/integration/class Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,7 @@ impl<'a> Function<'a> {
337337 . variadic( )
338338 }
339339 } ) ;
340+ let docs = & self . docs ;
340341
341342 quote ! {
342343 :: ext_php_rs:: class:: ConstructorMeta {
@@ -359,6 +360,7 @@ impl<'a> Function<'a> {
359360 build_fn: {
360361 fn inner( func: :: ext_php_rs:: builders:: FunctionBuilder ) -> :: ext_php_rs:: builders:: FunctionBuilder {
361362 func
363+ . docs( & [ #( #docs) , * ] )
362364 #( . arg( #required_args) ) *
363365 . not_required( )
364366 #( . arg( #not_required_args) ) *
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ pub struct TestClassArrayAccess {}
5353
5454#[ php_impl]
5555impl TestClassArrayAccess {
56+ /// Constructor
57+ /// doc
58+ /// comment
5659 pub fn __construct ( ) -> Self {
5760 Self { }
5861 }
You can’t perform that action at this time.
0 commit comments