Skip to content

Commit

Permalink
ignore variable functions when renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
maltethirty4 committed Mar 24, 2015
1 parent 27af06d commit bd62c64
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 bd62c64

Please sign in to comment.