Skip to content
Snippets Groups Projects
Verified Commit 72a22d84 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
parent 6227621d
No related branches found
No related tags found
No related merge requests found
......@@ -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()];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment