From fef55ab67f857eb84edc058ebff236c29d150403 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Fri, 11 Apr 2025 12:59:49 +0200 Subject: [PATCH] MDL-83994 course: Adapt PHPUnit to lower PHP versions --- course/format/tests/external/delete_section_test.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/course/format/tests/external/delete_section_test.php b/course/format/tests/external/delete_section_test.php index 4b60b8356eb..f7f1e3a4c19 100644 --- a/course/format/tests/external/delete_section_test.php +++ b/course/format/tests/external/delete_section_test.php @@ -61,7 +61,10 @@ final class delete_section_test extends \externallib_advanced_testcase { $this->resetAfterTest(); $course = - $this->getDataGenerator()->create_course(['numsections' => $sectionum, 'format' => $format, ...$formatoptions]); + $this->getDataGenerator()->create_course(array_merge( + ['numsections' => $sectionum, 'format' => $format], + $formatoptions, + )); $teacher = $this->getDataGenerator()->create_and_enrol($course, 'editingteacher'); // Execute the method. $courseformat = course_get_format($course->id);