From a9f2f34135383c010f2ad714bfcdbea6bccd927b Mon Sep 17 00:00:00 2001 From: Jannik Zschiesche Date: Wed, 12 Oct 2022 12:13:31 +0200 Subject: [PATCH 1/2] Extend comment about loop integration --- src/Composer/StudioPlugin.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/StudioPlugin.php b/src/Composer/StudioPlugin.php index 1db34ae..a9f3ddc 100644 --- a/src/Composer/StudioPlugin.php +++ b/src/Composer/StudioPlugin.php @@ -58,7 +58,8 @@ public function registerStudioPackages() foreach ($this->getManagedPaths() as $path) { $this->io->writeError("[Studio] Loading path $path"); - // In case composer version >= 2.3.0 + // Composer v2 always exposes the internal loop, so keep reusing it + // that is a fixed requirement since Composer >= 2.3 if (method_exists($this->composer, 'getLoop')) { $repoManager->prependRepository(new PathRepository( ['url' => $path], From 735e94f59e17ecac3cd86ac916a44ec90ef031d0 Mon Sep 17 00:00:00 2001 From: Jannik Zschiesche Date: Wed, 12 Oct 2022 12:13:41 +0200 Subject: [PATCH 2/2] Use Composer v2 when developing --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 0c531ee..3ac6eab 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ "symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0 || ^6.0" }, "require-dev": { - "composer/composer": "1.10.x-dev", + "composer/composer": "^2.4.2", "phpspec/phpspec": "^6.3 || ^7.0" }, "replace": {