Skip to content

Commit 1ed07a8

Browse files
committed
Update ScramblePrivateProperty.php
Missed one. This is the same as naneau#27.
1 parent 4c17a08 commit 1ed07a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private function scanPropertyDefinitions(array $nodes)
9999
{
100100
foreach ($nodes as $node) {
101101
// Scramble the private method definitions
102-
if ($node instanceof Property && $node->type === ClassNode::MODIFIER_PRIVATE) {
102+
if ($node instanceof Property && ($node->type & ClassNode::MODIFIER_PRIVATE)) {
103103
foreach($node->props as $property) {
104104

105105
// Record original name and scramble it

0 commit comments

Comments
 (0)