fixes a bug where catch type was not resolved

This commit is contained in:
Johannes M. Schmitt 2012-05-03 23:52:39 -05:00
parent b1cc9ce676
commit 0dae07af6b

View File

@ -66,6 +66,8 @@ class PHPParser_NodeVisitor_NameResolver extends PHPParser_NodeVisitorAbstract
if ($node->class instanceof PHPParser_Node_Name) {
$node->class = $this->resolveClassName($node->class);
}
} elseif ($node instanceof PHPParser_Node_Stmt_Catch) {
$node->type = $this->resolveClassName($node->type);
} elseif ($node instanceof PHPParser_Node_Expr_FuncCall
|| $node instanceof PHPParser_Node_Expr_ConstFetch
) {