I'm running this command:
sudo phpmd /repository/my/code/trunk/src/ text naming --reportfile code.staticanalysis
And getting this result:
Invalid field modifiers given, allowed modifiers are IS_PUBLIC, IS_PROTECTED, IS_PRIVATE and IS_STATIC.
This is a fresh install of PHPMD, via pear. I have tried it with different and multiple rulesets (codesize, naming, unusedcode) for the same result. I had a suspicion the PDepend library might be bad, but reinstalling it didn't help. Any pointers?