turnitin / moodle-plagiarism_turnitin

Turnitin Plagiarism plugin for Moodle
http://www.turnitin.com
GNU General Public License v3.0
49 stars 71 forks source link

Fix phpunit with Moodle 4.3 and PHP 8.2. #734

Closed timhunt closed 3 months ago

timhunt commented 3 months ago

We were seeing PHPunit failures after installing this plugin into Moodle 4.3 (with PHP 8.2).

This is one way to fix it. May not be the most elegant, but I hope it is OK.

Among other things, this fixes issue #712.

I tested on Moodle 4.1 with PHP 7.4 to verify that I had not broken anything.

I hope this is helpful @carl-hostrander.

timhunt commented 3 months ago

Thanks!

And, in case you have not seen this bit of Moodle development news: Right now there is a know issue with https://moodlehq.github.io/moodle-plugin-ci/. See https://github.com/moodlehq/moodle-plugin-ci/issues/309 and https://github.com/nvm-sh/nvm/issues/3405 for details. Hopefully that gets sorted soon.