From 0af0a96bb1c0182e93ec591d0743a1f31c96067f Mon Sep 17 00:00:00 2001 From: Marina Glancy Date: Mon, 15 Feb 2021 15:13:36 +0100 Subject: [PATCH] MDL-70898 various: private functions can not be declared final --- analytics/classes/default_bulk_actions.php | 2 +- backup/util/ui/classes/copy/copy.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/analytics/classes/default_bulk_actions.php b/analytics/classes/default_bulk_actions.php index e07d389864f9c..dd4388ae30a7a 100644 --- a/analytics/classes/default_bulk_actions.php +++ b/analytics/classes/default_bulk_actions.php @@ -116,7 +116,7 @@ public static function not_useful() { * * @return array */ - private static final function bulk_action_base_attrs() { + private static function bulk_action_base_attrs() { return [ 'disabled' => 'disabled', 'data-toggle' => 'action', diff --git a/backup/util/ui/classes/copy/copy.php b/backup/util/ui/classes/copy/copy.php index 496cf0268b5f4..fbf269582135e 100644 --- a/backup/util/ui/classes/copy/copy.php +++ b/backup/util/ui/classes/copy/copy.php @@ -95,7 +95,7 @@ public function __construct(\stdClass $formdata) { * @param \stdClass $formdata Data from the validated course copy form. * @return array $keptroles The roles to keep. */ - private final function get_enrollment_roles(\stdClass $formdata): array { + private function get_enrollment_roles(\stdClass $formdata): array { $keptroles = array(); foreach ($formdata as $key => $value) { @@ -114,7 +114,7 @@ private final function get_enrollment_roles(\stdClass $formdata): array { * @return \stdClass $copydata Data required for course copy operations. * @throws \moodle_exception If one of the required copy fields is missing */ - private final function get_copy_data(\stdClass $formdata): \stdClass { + private function get_copy_data(\stdClass $formdata): \stdClass { $copydata = new \stdClass(); foreach ($this->copyfields as $field) {