tests: Make PHPUnit data providers static

Initally used a new sniff with autofix (T333745)

Bug: T332865
Change-Id: If047c9c0bb337cea21e3825456eb3954dd1b693a
This commit is contained in:
Umherirrender 2023-05-20 11:19:06 +02:00
parent 4ae7023ecc
commit 9d9b921b0b

View file

@ -19,7 +19,7 @@ class CategoryTreeServiceWiringTest extends MediaWikiIntegrationTestCase {
$this->addToAssertionCount( 1 );
}
public function provideService() {
public static function provideService() {
$wiring = require __DIR__ . '/../../includes/ServiceWiring.php';
foreach ( $wiring as $name => $_ ) {
yield $name => [ $name ];