Verified Commit f316821d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3422362 by mondrake, Spokje, smustgrave: Change...

Issue #3422362 by mondrake, Spokje, smustgrave: Change ComposerIntegrationTest::providerTestComposerJson to static

(cherry picked from commit 72a22d84)
parent 418d0cb6
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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()];
    }