Skip to content

Commit

Permalink
Updated function defs for 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
amandadoughty committed Oct 11, 2021
1 parent e49aae7 commit 02c5b20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
3 changes: 1 addition & 2 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,14 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class provider implements \core_privacy\local\metadata\null_provider {
use \core_privacy\local\legacy_polyfill;

/**
* Get the language string identifier with the component's language
* file to explain why this plugin stores no data.
*
* @return string
*/
public static function _get_reason() {
public static function get_reason() : string {
return 'privacy:metadata';
}
}
3 changes: 2 additions & 1 deletion tests/update_course_visibility_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
*
* @package local_culcourse_visibility
* @copyright 2017 Amanda Doughty
* @group local_culcourse_visibility
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class local_culcourse_visibility_update_course_visibility_testcase extends advanced_testcase {
Expand All @@ -42,7 +43,7 @@ class local_culcourse_visibility_update_course_visibility_testcase extends advan
/**
* Setup function - we will create courses with differing start and end dates.
*/
protected function setUp() {
protected function setUp(): void {
global $DB;

$this->resetAfterTest(true);
Expand Down
6 changes: 3 additions & 3 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2017080205; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2014110400; // Requires this Moodle version.
$plugin->version = 2021101100; // The current plugin version (Date: YYYYMMDDXX).
$plugin->requires = 2020110900; // Requires this Moodle version.
$plugin->component = 'local_culcourse_visibility'; // Full name of the plugin (used for diagnostics).
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '2.1.2 (Build: 2017080205)';
$plugin->release = '3.10.0 (Build: 2021101100)';

0 comments on commit 02c5b20

Please sign in to comment.