Skip to content

Undefined class even if class is aliased #521

@Taluu

Description

@Taluu

Hi,

After running phan, I've got an error saying "undeclared class \F". The thing is, I have a class_alias on that : class_alias(Foo::class, 'F'); (...historical reasons actually), so it shouldn't trigger this error... To continue on checking errors, I have declared a stub but IMO that's not really "exact" to do that.

Any plans to support class_alias statements ?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis improves the quality of Phan's analysis of a codebase

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions