Skip to content

Commit

Permalink
Fix static call for private method.
Browse files Browse the repository at this point in the history
Signed-off-by: 谢致邦 (XIE Zhibang) <Yeking@Red54.com>
  • Loading branch information
Red54 committed May 17, 2016
1 parent 8838048 commit 7d46551
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Naneau/Obfuscator/Node/Visitor/ScramblePrivateMethod.php
Expand Up @@ -20,7 +20,7 @@
use PhpParser\Node\Stmt\Class_ as ClassNode;
use PhpParser\Node\Stmt\ClassMethod;
use PhpParser\Node\Expr\MethodCall;

use PhpParser\Node\Expr\StaticCall;
use PhpParser\Node\Expr\Variable;

/**
Expand Down Expand Up @@ -75,7 +75,7 @@ public function enterNode(Node $node)
}

// Scramble calls
if ($node instanceof MethodCall) {
if ($node instanceof MethodCall || $node instanceof StaticCall) {

// Node wasn't renamed
if (!$this->isRenamed($node->name)) {
Expand Down

0 comments on commit 7d46551

Please sign in to comment.