Skip to content

Commit

Permalink
Update UnusedPrivateField.php
Browse files Browse the repository at this point in the history
  • Loading branch information
timporter committed May 29, 2013
1 parent d83d971 commit 9ab3b6d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/php/PHP/PMD/Rule/UnusedPrivateField.php
Expand Up @@ -202,6 +202,9 @@ protected function isValidPropertyNode(PHP_PMD_Node_ASTNode $node = null)
return false;
}
$parent = $parent->getParent();
if (is_null($parent)) {
return false;
}
}
return true;
}
Expand Down

0 comments on commit 9ab3b6d

Please sign in to comment.