manuelpichler/pdepend — pull request #10 by Slashbunny (2012-04-26 15:57:03+00:00)
Title: DocComment is sometimes incorrectly set for functions

I had a strange regression on our CI server after upgrading pear/phpunit/pdepend/phpmd/etc. It appeared phpmd was not always recognizing our @SuppressWarning statements in global function doc blocks. I discovered the "DocComment" was being incorrectly set to random comments within the function body. This caused phpmd to miss the suppression statements.

I included a fix and a regression test to demonstrate the behaviour.