Skip to content

Commit

Permalink
Merge pull request naneau#13 from maltethirty4/variable_functions
Browse files Browse the repository at this point in the history
ignore variable functions when renaming
  • Loading branch information
naneau committed Dec 16, 2015
2 parents a01fa43 + bd62c64 commit 8838048
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Naneau/Obfuscator/Node/Visitor/TrackingRenamerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ protected function isRenamed($method)
return false;
}

// Ignore variable functions
if (!is_string($method)) {
return false;
}

return isset($this->renamed[$method]);
}

Expand Down

0 comments on commit 8838048

Please sign in to comment.