diff --git a/ComposerPlugin.php b/ComposerPlugin.php index 6e92af9..dc275d3 100644 --- a/ComposerPlugin.php +++ b/ComposerPlugin.php @@ -65,4 +65,12 @@ public function onPostAutoloadDump(Event $event) { $args; $executor->execute($command); } + + /** Does nothing but required by Composer 2.0 */ + public function deactivate(Composer $composer, IOInterface $io) { + } + + /** Does nothing but required by Composer 2.0 */ + public function uninstall(Composer $composer, IOInterface $io) { + } } diff --git a/composer.json b/composer.json index 80e1c3c..49424a2 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "bin/hh-autoload.hack" ], "require": { - "composer-plugin-api": "^1.0", + "composer-plugin-api": "^1.0|^2.0", "hhvm": "^4.25", "hhvm/hsl": "^4.0" },