Skip to content

Improve #[php] attribute documentation #422

@usarise

Description

@usarise

After commit 90dfe33
php class name assignment broken.

Sample:

#[php_class(name = "Test\\Bug")]
pub struct TestBug {}

#[php_impl]
impl TestBug {
    const TEXT: &str = "issue";
}

In php script does not work Test\Bug::TEXT
and it works TestBug::TEXT

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationgood first issueGood for newcomers

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions