Skip to content

NameResolver will not work on Throws subnodes #1011

@maddy2101

Description

@maddy2101

Hi,

i face the situation to want to analyse throw new \Vendor\App\Foo\Exception('message', 123); calls. When I filter for NEW_ nodes, the namespace of the exception class is resolved, all good.
But what I need is the Throw_ node, where $node->expr is the New_, but inside this class the namespace is not resolved.

Is there a way to go that route?

Please feel free to ask for further information, I am not exactly sure how that might be resolved or maybe there is already some solution that I could use? Thank you very much for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions