mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-11-27 04:24:43 +01:00
fixes a bug where catch type was not resolved
This commit is contained in:
parent
b1cc9ce676
commit
0dae07af6b
@ -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
|
||||
) {
|
||||
|
Loading…
Reference in New Issue
Block a user