Skip to content

Commit 8838048

Browse files
committed
Merge pull request naneau#13 from maltethirty4/variable_functions
ignore variable functions when renaming
2 parents a01fa43 + bd62c64 commit 8838048

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Naneau/Obfuscator/Node/Visitor/TrackingRenamerTrait.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ protected function isRenamed($method)
5252
return false;
5353
}
5454

55+
// Ignore variable functions
56+
if (!is_string($method)) {
57+
return false;
58+
}
59+
5560
return isset($this->renamed[$method]);
5661
}
5762

0 commit comments

Comments
 (0)