diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b8ed6279ea6c254f38911509713532bbcd2e44e..d07e00310c327194a9f2937526ce0e679e5c2e91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [1.1.7] - 2023-03-13 +### Fixed +- Command return value + ## [1.1.6] - 2023-02-20 ### Fixed - Command return value diff --git a/composer.json b/composer.json index 0451a5993377a855f2e1026661b40f92bf159719..248323c368f95e88fc6e1b8a87cc6afd66eb27ad 100644 --- a/composer.json +++ b/composer.json @@ -11,8 +11,11 @@ "email": "grzegorz@wpdesk.net" } ], + "platform": { + "php": "7.2" + }, "require": { - "php": ">=7.0", + "php": ">=7.2", "composer-plugin-api": "^1|^2" }, "require-dev": { diff --git a/src/ActivationReminder/Composer/PrepareActivationReminderCommand.php b/src/ActivationReminder/Composer/PrepareActivationReminderCommand.php index e8e16976a2ee7cd4625cfb60aded5152c010e222..6f903ea0ee1d737bb3d8e8aa6e656e42c2b377ac 100644 --- a/src/ActivationReminder/Composer/PrepareActivationReminderCommand.php +++ b/src/ActivationReminder/Composer/PrepareActivationReminderCommand.php @@ -3,11 +3,9 @@ namespace WPDesk\ActivationReminder\Composer; use Composer\Command\BaseCommand; -use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; - /** * Can prepare activation reminder for plugin. * @@ -60,7 +58,7 @@ class PrepareActivationReminderCommand extends BaseCommand $output->writeln( "Activation reminder created." ); - return Command::SUCCESS; + return 0; } private function create_or_get_target_file_name( array $class_map, $random_class, $random_letter ) {