Monday 28 July 2014

Problems with pdepend and phpmd dependencies in composer

I added phpmd to my composer.json for project but got this error when I tried to run phpmd.

vendor/bin/phpmd . codesize,design,naming,unusedcode --reportfile build/reports/messdetector.html --exclude vendor,build PHP Warning: require_once(PHP/Depend/Autoload.php): failed to open stream: No such file or directory in /mnt/hgfs/workspace/programmes-service/vendor/phpmd/phpmd/src/main/php/PHP/PMD/ParserFactory.php on line 48

This seems to be an issue with pdepend 2.0.0, adding the line below to pdepend 1.1.1 to you composer.json should fix the problem.

pdepend/pdepend" : "1.1.1"

No comments:

Post a Comment