From 2e041def501d661b806f50000c8a4dccbd4907b4 Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Tue, 31 Mar 2020 17:53:05 +0200 Subject: [PATCH] Support Composer 2.0 --- composer.json | 2 +- src/Plugin.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 5adb8e0..3916a7a 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ ], "require": { "php": "^7.1", - "composer-plugin-api": "^1.1", + "composer-plugin-api": "^1.1 || ^2.0", "phpstan/phpstan": ">=0.11.6" }, "require-dev": { diff --git a/src/Plugin.php b/src/Plugin.php index ba9aad5..6a63c65 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -52,6 +52,16 @@ public function activate(Composer $composer, IOInterface $io): void // noop } + public function deactivate(Composer $composer, IOInterface $io): void + { + // noop + } + + public function uninstall(Composer $composer, IOInterface $io): void + { + // noop + } + public static function getSubscribedEvents(): array { return [