diff --git a/crates/macros/src/class.rs b/crates/macros/src/class.rs index 2e02d1d36f..c9c25f8710 100644 --- a/crates/macros/src/class.rs +++ b/crates/macros/src/class.rs @@ -153,7 +153,7 @@ fn generate_registered_class_impl( }; let docs = quote! { - #(#docs)* + #(#docs,)* }; let extends = if let Some(extends) = extends { diff --git a/tests/src/integration/class/mod.rs b/tests/src/integration/class/mod.rs index 3f32430e24..5ce40ab798 100644 --- a/tests/src/integration/class/mod.rs +++ b/tests/src/integration/class/mod.rs @@ -1,6 +1,8 @@ #![allow(clippy::unused_self)] use ext_php_rs::{convert::IntoZval, prelude::*, types::Zval, zend::ce}; +/// Doc comment +/// Goes here #[php_class] pub struct TestClass { string: String,