Just updated to Moodle 3.3, when I unenrol a user from a course, I get the warning:
Events API using $handlers array has been deprecated in favour of Events 2 API, please use it instead.
- line 3946 of \lib\deprecatedlib.php: call to debugging()
- line 4224 of \lib\deprecatedlib.php: call to events_dispatch()
- line 839 of \lib\classes\event\base.php: call to events_trigger_legacy()
- line 1858 of \lib\enrollib.php: call to core\event\base->trigger()
- line 69 of \enrol\unenroluser.php: call to enrol_plugin->unenrol_user()