Skip to content

Commit e946066

Browse files
committed
Change extends to take a reference rather than pointer
1 parent 317201b commit e946066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/php/class.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ impl<'a> ClassBuilder<'a> {
6666
/// # Parameters
6767
///
6868
/// * `parent` - The parent class to extend.
69-
pub fn extends(mut self, parent: *mut ClassEntry) -> Self {
70-
self.extends = parent;
69+
pub fn extends(mut self, parent: &ClassEntry) -> Self {
70+
self.extends = (parent as *const _) as *mut _;
7171
self
7272
}
7373

0 commit comments

Comments
 (0)