MDL-70898 various: private functions can not be declared final

This commit is contained in:
Marina Glancy
2021-02-15 16:37:05 +01:00
parent a2fda1289f
commit dbb31d14d6
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ class default_bulk_actions {
*
* @return array
*/
private static final function bulk_action_base_attrs() {
private static function bulk_action_base_attrs() {
return [
'disabled' => 'disabled',
'data-toggle' => 'action',
+2 -2
View File
@@ -95,7 +95,7 @@ class copy {
* @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 @@ class copy {
* @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) {