From 7e7a7652930aa68a780280d3a6acc2aa47b6e268 Mon Sep 17 00:00:00 2001
From: Grzegorz Rola <grola@seostudio.pl>
Date: Mon, 13 Mar 2023 17:24:26 +0100
Subject: [PATCH] bugfix(composer): command return value

---
 CHANGELOG.md                                                 | 4 ++++
 composer.json                                                | 5 ++++-
 .../Composer/PrepareActivationReminderCommand.php            | 4 +---
 3 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2b8ed62..d07e003 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 0451a59..248323c 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 e8e1697..6f903ea 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 ) {
-- 
GitLab