Skip to content

Commit

Permalink
修改composer-plugin-api版本,兼容composer2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
titrxw committed Oct 27, 2020
1 parent 969277e commit 8a99229
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "php-cs-fixer plugin",
"type": "composer-plugin",
"require": {
"composer-plugin-api": "^1.0",
"composer-plugin-api": "^2.0",
"friendsofphp/php-cs-fixer": "^2.15"
},
"require-dev": {
Expand Down
6 changes: 6 additions & 0 deletions src/Plugin/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ public function activate(Composer $composer, IOInterface $io) {
$this->io = $io;
}

public function deactivate(Composer $composer, IOInterface $io) {
}

public function uninstall(Composer $composer, IOInterface $io) {
}

/**
* @return array
*/
Expand Down

0 comments on commit 8a99229

Please sign in to comment.