tests: Make PHPUnit data providers static

Initally used a new sniff with autofix (T333745)

Bug: T332865
Change-Id: Ibd68b67915fdcd1a5af5c8aedc7235c0a655434d
This commit is contained in:
Umherirrender 2023-05-21 16:35:54 +02:00
parent f7ec255f3a
commit f18dd9e52d

View file

@ -90,7 +90,7 @@ class HooksTest extends MediaWikiLangTestCase {
}
}
public function providerOnSiteNoticeAfter(): array {
public static function providerOnSiteNoticeAfter(): array {
return [
[
// $wgCookieWarningEnabled
@ -187,7 +187,7 @@ class HooksTest extends MediaWikiLangTestCase {
);
}
public function providerOnSiteNoticeAfterGeoLocation() {
public static function providerOnSiteNoticeAfterGeoLocation() {
return [
[
'8.8.8.8',