open-lms-open-source / moodle-plugin-ci

Assist with running a Moodle plugin in Travis CI
https://blackboard-open-source.github.io/moodle-plugin-ci/
GNU General Public License v3.0
42 stars 37 forks source link

PHPMD library has PHP7 error #5

Closed davidscotson closed 8 years ago

davidscotson commented 9 years ago

You can see on this log that the pdepend library that phpmd uses is throwing errors to do with undefined constants on PHP7:

https://travis-ci.org/danmarsden/moodle-plagiarism_urkund/jobs/91730002

This is the upstream bug, which seems to have been fixed and released already:

https://github.com/pdepend/pdepend/issues/213

Not clear if it's made it's way to PHPMD or not yet

polothy commented 9 years ago

I think if I run composer update on this project, it might pull it down.

ecampbell commented 9 years ago

Not sure if this is a separate bug, but I encountered an error with PHP7 while checking my plugin too, cf. https://travis-ci.org/ecampbell/moodle-qformat_wordtable/jobs/92040018

davidscotson commented 9 years ago

That looks like it might be a problem in the Travis system, seems to have happened to a few different people in the last day or so, but worked before that.

Ah, found it:

https://github.com/travis-ci/travis-ci/issues/5111

polothy commented 8 years ago

This has been fixed in 1.2.0. The dependencies have been updated, which support PHP7.