-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Simon Thordal
committed
Oct 21, 2024
1 parent
45eac1b
commit 11292b6
Showing
2 changed files
with
3 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
|
@@ -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. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters