-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
bugSomething isn't workingSomething isn't workingmacrosRelated to macrosRelated to macrosstubsRelated to stub generationRelated to stub generation
Description
Branch: master
use ext_php_rs::prelude::*;
#[php_class]
pub struct Example {}
#[php_impl]
impl Example {
pub fn foo(&self, r#as: &str) {}
}
#[php_module]
pub fn get_module(module: ModuleBuilder) -> ModuleBuilder {
module.class::<Example>()
}
<?php
// Stubs for untitled5
namespace {
class Example {
public function foo(string $r#as) {}
public function __construct() {}
}
}
Also, __construct()
in stubs is unnecessary since you can't instantiate this class from PHP.
P.S. Pardon me for not using the issue templates :-)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingmacrosRelated to macrosRelated to macrosstubsRelated to stub generationRelated to stub generation