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:
@@ -29,7 +29,7 @@ class editorlib_test extends \advanced_testcase {
|
||||
/**
|
||||
* Tests the installation of event handlers from file
|
||||
*/
|
||||
public function test_get_preferred_editor() {
|
||||
public function test_get_preferred_editor(): void {
|
||||
|
||||
// Fake a user agent.
|
||||
$_SERVER['HTTP_USER_AGENT'] = 'Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.21 5 Safari/534.10';
|
||||
|
||||
Reference in New Issue
Block a user