I have written plugin that works on 3.5 Moodle.
I have installed fresh dev version of 3.7 Moodle and now when I try to run my plugin, I get expection:
!!! Exception - syntax error, unexpected ')', expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' !!!
Line that triggers that is in bold. I have gone through the release notes of both 3.6 and 3.7 and I cannot find a change why this would break.
Code:
namespace local_studissync\task;
defined('MOODLE_INTERNAL') || die();
class worker extends \core\task\scheduled_task {
public function execute() {
mtrace("Starting sync with Studis!");
$sync = new \local_studissync\sync();
Any advice how to go and solve this?