Skip to content

NameResolver should be able to resolve unqualified ConstFetch in namespace #236

@lisachenko

Description

@lisachenko

Looks like constants in namespaces aren't resolved:

namespace Foo;

const A = 42;
function ($a = A) {}

Here, NameResolver will leave the name unqualified for the constant fetch. However, it should be FQN: Foo\A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions