-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Labels
Milestone
Description
Master branch (660f308):
#[php_class(name = "MyClass")]
pub struct _MyClass {}
#[php_impl]
impl _MyClass {
pub fn __construct() -> Self {
Self {}
}
}
#[php_class(name = "MyNamespace\\MyOtherClass")]
pub struct MyOtherClass {}
#[php_impl]
impl MyOtherClass {
pub fn __construct() -> Self {
Self {}
}
}
#[php_module]
pub fn get_module(module: ModuleBuilder) -> ModuleBuilder {
module.class::<_MyClass>().class::<MyOtherClass>()
}
<?php
var_dump(new MyClass);
new MyNamespace\MyOtherClass;
object(MyClass)#1 (0) {
}
PHP Fatal error: Uncaught Error: Class "MyNamespace\MyOtherClass" not found in test.php:3
It works well on the latest release (0.13.1).