#111 NamespaceResolver: Resolve PHP 7.4 class property types

This commit is contained in:
Tyler Christensen 2020-07-13 12:34:35 -06:00
parent 290645f3c9
commit 34acec744b

View File

@ -111,6 +111,11 @@ func (nsr *NamespaceResolver) EnterNode(w walker.Walkable) bool {
nsr.ResolveType(n.ReturnType)
}
case *stmt.PropertyList:
if n.Type != nil {
nsr.ResolveType(n.Type)
}
case *expr.Closure:
for _, parameter := range n.Params {
nsr.ResolveType(parameter.(*node.Parameter).VariableType)