mirror of
https://github.com/nikic/PHP-Parser.git
synced 2025-06-21 07:21:24 +02:00
fixes a bug where catch type was not resolved
This commit is contained in:
@ -66,6 +66,8 @@ class PHPParser_NodeVisitor_NameResolver extends PHPParser_NodeVisitorAbstract
|
|||||||
if ($node->class instanceof PHPParser_Node_Name) {
|
if ($node->class instanceof PHPParser_Node_Name) {
|
||||||
$node->class = $this->resolveClassName($node->class);
|
$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
|
} elseif ($node instanceof PHPParser_Node_Expr_FuncCall
|
||||||
|| $node instanceof PHPParser_Node_Expr_ConstFetch
|
|| $node instanceof PHPParser_Node_Expr_ConstFetch
|
||||||
) {
|
) {
|
||||||
|
Reference in New Issue
Block a user