MDL-81521 core: Update all possibly data providers to be static
Note: Some data providers could not be automatically be converted to being static. These will be handled in a separate issue.
This commit is contained in:
@@ -363,7 +363,7 @@ class tablelib_test extends \advanced_testcase {
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function fullname_column_provider() {
|
||||
public static function fullname_column_provider(): array {
|
||||
return [
|
||||
['language'],
|
||||
['alternatename lastname'],
|
||||
@@ -782,7 +782,7 @@ class tablelib_test extends \advanced_testcase {
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function initials_provider(): array {
|
||||
public static function initials_provider(): array {
|
||||
return [
|
||||
[null, null, null],
|
||||
['A', null, 'A'],
|
||||
|
||||
Reference in New Issue
Block a user