Skip to content

Commit 15dc0f4

Browse files
committed
Merge pull request naneau#31 from gburtini/patch-2
Update ScramblePrivateProperty.php
2 parents d61e758 + 1ed07a8 commit 15dc0f4

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)