Merge pull request #112 from tylerchr/nsr-typed-properties
#111 NamespaceResolver: Resolve PHP 7.4 class property types
This commit is contained in:
commit
70e5fa4db5
@ -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