Skip to content

Commit 072bc60

Browse files
committed
Merge pull request naneau#36 from Red54/master
Fix static call for private method.
2 parents 8838048 + 7d46551 commit 072bc60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use PhpParser\Node\Stmt\Class_ as ClassNode;
2121
use PhpParser\Node\Stmt\ClassMethod;
2222
use PhpParser\Node\Expr\MethodCall;
23-
23+
use PhpParser\Node\Expr\StaticCall;
2424
use PhpParser\Node\Expr\Variable;
2525

2626
/**
@@ -75,7 +75,7 @@ public function enterNode(Node $node)
7575
}
7676

7777
// Scramble calls
78-
if ($node instanceof MethodCall) {
78+
if ($node instanceof MethodCall || $node instanceof StaticCall) {
7979

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

0 commit comments

Comments
 (0)