#111 NamespaceResolver: Resolve PHP 7.4 class property types
This commit is contained in:
parent
290645f3c9
commit
34acec744b
@ -111,6 +111,11 @@ func (nsr *NamespaceResolver) EnterNode(w walker.Walkable) bool {
|
|||||||
nsr.ResolveType(n.ReturnType)
|
nsr.ResolveType(n.ReturnType)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
case *stmt.PropertyList:
|
||||||
|
if n.Type != nil {
|
||||||
|
nsr.ResolveType(n.Type)
|
||||||
|
}
|
||||||
|
|
||||||
case *expr.Closure:
|
case *expr.Closure:
|
||||||
for _, parameter := range n.Params {
|
for _, parameter := range n.Params {
|
||||||
nsr.ResolveType(parameter.(*node.Parameter).VariableType)
|
nsr.ResolveType(parameter.(*node.Parameter).VariableType)
|
||||||
|
Loading…
Reference in New Issue
Block a user