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:
Andrew Nicols
2024-11-15 12:50:44 +08:00
parent e1d05182a6
commit c370c0cc5e
407 changed files with 1449 additions and 1430 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ class adminlib_test extends \advanced_testcase {
*
* @return array
*/
public function db_should_replace_dataprovider() {
public static function db_should_replace_dataprovider(): array {
return [
// Skipped tables.
['block_instances', '', false],
@@ -86,7 +86,7 @@ class adminlib_test extends \advanced_testcase {
* @covers ::db_should_replace
* @return array
*/
public function db_should_replace_additional_skip_tables_dataprovider() {
public static function db_should_replace_additional_skip_tables_dataprovider(): array {
return [
// Skipped tables.
['block_instances', '', false],