Recently I upgraded from moodle 3.3.1 to 3.4 and php to 7.0. After the update cron stopped working. I am getting the error Class "Object" not found from my SSO module. I am using moodle-drupalservices as an SSO between our drupal site and moodle. The code that is throwing the error is $user = new object(); in auth.php. The comment right above the code is "// build the new user object to be put into the Moodle database".
Any ideas on how to fix the error?