From 72a22d841daf5e6b04b47be50d75a0db58568055 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Thu, 29 Feb 2024 08:01:17 +0000 Subject: [PATCH] Issue #3422362 by mondrake, Spokje, smustgrave: Change ComposerIntegrationTest::providerTestComposerJson to static --- core/tests/Drupal/Tests/ComposerIntegrationTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/tests/Drupal/Tests/ComposerIntegrationTest.php b/core/tests/Drupal/Tests/ComposerIntegrationTest.php index 017aec0815eb..6f9fa84b634a 100644 --- a/core/tests/Drupal/Tests/ComposerIntegrationTest.php +++ b/core/tests/Drupal/Tests/ComposerIntegrationTest.php @@ -52,7 +52,7 @@ public function testComposerLockHash() { * * @dataProvider providerTestComposerJson */ - public function testComposerTilde($path) { + public function testComposerTilde(string $path): void { if (str_ends_with($path, 'composer/Metapackage/CoreRecommended/composer.json')) { $this->markTestSkipped("$path has tilde"); } @@ -78,9 +78,9 @@ public function testComposerTilde($path) { * * @return array */ - public function providerTestComposerJson() { + public static function providerTestComposerJson(): array { $data = []; - $composer_json_finder = $this->getComposerJsonFinder(realpath(__DIR__ . '/../../../../')); + $composer_json_finder = self::getComposerJsonFinder(realpath(__DIR__ . '/../../../../')); foreach ($composer_json_finder->getIterator() as $composer_json) { $data[$composer_json->getPathname()] = [$composer_json->getPathname()]; } -- GitLab