From 82bbc85fd660d062675bc87a5ada1a819a7eecf4 Mon Sep 17 00:00:00 2001 From: Jane Adelmann Date: Wed, 30 Jan 2019 16:56:56 +0200 Subject: [PATCH] Add support for PHP 5.6 and Privacy API --- classes/privacy/provider.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php index 1c156f7..195f984 100644 --- a/classes/privacy/provider.php +++ b/classes/privacy/provider.php @@ -20,8 +20,14 @@ defined('MOODLE_INTERNAL') || die(); use core_privacy\local\metadata\collection; -class provider implements \core_privacy\local\metadata\provider { - public static function get_metadata(collection $collection): collection { +class provider implements + \core_privacy\local\metadata\provider, + \core_privacy\local\request\plugin\provider { + + // This trait must be included. + use \core_privacy\local\legacy_polyfill; + + public static function _get_metadata(collection $collection) { $collection->add_subsystem_link( 'core_files',