Skip to content

Commit

Permalink
issue #12 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
pk-fr committed Dec 24, 2015
1 parent 9431ced commit b3af1bc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions include/classes/parser_extensions/my_node_visitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,23 @@ public function leaveNode(PhpParser\Node $node)
}
}
}
if ($node instanceof PhpParser\Node\Stmt\Catch_)
{
if (isset($node->type) && isset($node->type->parts))
{
$parts = $node->type->parts;
$name = $parts[count($parts)-1];
if ( is_string($name) && (strlen($name) !== 0) )
{
$r = $scrambler->scramble($name);
if ($r!==$name)
{
$node->type->parts[count($parts)-1] = $r;
$node_modified = true;
}
}
}
}
}

if ($conf->obfuscate_interface_name)
Expand Down

0 comments on commit b3af1bc

Please sign in to comment.