We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 15dc0f4 + 874bb97 commit a01fa43Copy full SHA for a01fa43
src/Naneau/Obfuscator/Node/Visitor/ScrambleVariable.php
@@ -16,6 +16,7 @@
16
use PhpParser\Node;
17
use PhpParser\Node\Stmt;
18
use PhpParser\Node\Param;
19
+use PhpParser\Node\Stmt\StaticVar;
20
use PhpParser\Node\Expr\Variable;
21
use PhpParser\Node\Stmt\Catch_ as CatchStatement;
22
use PhpParser\Node\Expr\ClosureUse;
@@ -58,7 +59,7 @@ public function __construct(StringScrambler $scrambler)
58
59
public function enterNode(Node $node)
60
{
61
// Function param or variable use
- if ($node instanceof Param || $node instanceof Variable) {
62
+ if ($node instanceof Param || $node instanceof StaticVar || $node instanceof Variable) {
63
return $this->scramble($node);
64
}
65
0 commit comments