MDL-81522 phpunit: Add missing void return type to all tests
While this change is not 100% required now, it's good habit and we are checking for it since Moodle 4.4. All the changes in this commit have been applied automatically using the moodle.PHPUnit.TestReturnType sniff and are, exclusively adding the ": void" return types when missing.
This commit is contained in:
@@ -56,7 +56,7 @@ class float_test extends \advanced_testcase {
|
||||
/**
|
||||
* Testcase to check generated timestamp
|
||||
*/
|
||||
public function test_exportValue() {
|
||||
public function test_exportValue(): void {
|
||||
$element = new MoodleQuickForm_float('testel');
|
||||
|
||||
$value = ['testel' => 3.14];
|
||||
|
||||
Reference in New Issue
Block a user