namespace resolver: fix fail on anonimous class
This commit is contained in:
parent
ac135f132d
commit
0b37dd6dbf
@ -73,7 +73,9 @@ func (nsr *NamespaceResolver) EnterNode(w walker.Walkable) bool {
|
||||
nsr.ResolveName(interfaceName, "")
|
||||
}
|
||||
|
||||
if n.ClassName != nil {
|
||||
nsr.AddNamespacedName(n, n.ClassName.(*node.Identifier).Value)
|
||||
}
|
||||
|
||||
case *stmt.Interface:
|
||||
for _, interfaceName := range n.Extends {
|
||||
|
Loading…
Reference in New Issue
Block a user