Skip to content

Commit

Permalink
trying again v5
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Thordal committed Oct 21, 2024
1 parent 45eac1b commit 11292b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <https://www.gnu.org/licenses/>.

namespace generator;
use stdClass;
use testing_module_generator;

/**
* homework/tests/generator/mod_homework_generator.php
* homework/tests/generator/lib.php
*
* @package mod_homework
* @copyright 2024, cs-24-sw-5-01 <[email protected]>
Expand All @@ -34,12 +30,12 @@ class mod_homework_generator extends testing_module_generator {
/**
* Create an instance of the homework module.
*
* @param array|stdClass|null $record The test data for the homework instance.
* @param array|null $record The test data for the homework instance.
* @param array|null $options
* @return stdClass The homework instance.
* @throws \dml_exception
*/
public function create_instance(array|null|\stdClass $record = null, array|null $options = null): stdClass {
public function create_instance($record = null, ?array $options = null) {
global $DB;

// Merge incoming data with defaults.
Expand Down
2 changes: 0 additions & 2 deletions server/moodle/mod/homework/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*/

defined('MOODLE_INTERNAL') || die();
global $plugin;


$plugin->version = 2024101400; // The current module version (Date: YYYYMMDDXX).
$plugin->requires = 2024090300; // Requires this Moodle version.
Expand Down

0 comments on commit 11292b6

Please sign in to comment.