Skip to content

Commit

Permalink
Support Composer 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 31, 2020
1 parent 55769ea commit 2e041de
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
10 changes: 10 additions & 0 deletions src/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 [
Expand Down

0 comments on commit 2e041de

Please sign in to comment.