diff --git a/src/Composer/Plugin/PluginManager.php b/src/Composer/Plugin/PluginManager.php index 386de461b..cfbc804d6 100644 --- a/src/Composer/Plugin/PluginManager.php +++ b/src/Composer/Plugin/PluginManager.php @@ -175,7 +175,7 @@ class PluginManager } if ($oldInstallerPlugin) { - $installer = new $class($this->composer, $this->io); + $installer = new $class($this->io, $this->composer); $this->composer->getInstallationManager()->addInstaller($installer); } else { $plugin = new $class();