Skip to content

Variables resolve incorrectly with try catch statements #22

@JingYenLoh

Description

@JingYenLoh

Minimal repro input:

try {
  $foo = 1;
} catch (Exception $e) {
  $foo = 2;
}
echo $foo;

produces

try {
  $foo = 1;
} catch (Exception $e) {
  $foo = 2;
}
echo 2;

I believe Resolver->nodeCanBranch needs to include try catch statements as well.

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