Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jun 19, 2022
1 parent 7d4864f commit e7afcb6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use PhpParser\Node\Expr\AssignOp;
use PhpParser\Node\Expr\BinaryOp;
use PhpParser\Node\Expr\Ternary;
use PhpParser\Node\Expr\Variable;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt;
use PhpParser\Node\Stmt\Class_;
Expand Down Expand Up @@ -140,7 +141,7 @@ public function processNodes(

if ($node instanceof TryCatch) {
foreach ($node->catches as $catch) {
$varName = $catch->var instanceof Expr\Variable
$varName = $catch->var instanceof Variable
? $this->nodeNameResolver->getName($catch->var)
: null;
$catchMutatingScope = $mutatingScope->enterCatch($catch->types, $varName);
Expand Down

0 comments on commit e7afcb6

Please sign in to comment.