From ef18d271ba86de46f1252842970d2c8655251a38 Mon Sep 17 00:00:00 2001 From: Matt Scott Date: Fri, 29 Jun 2018 13:40:30 -0500 Subject: [PATCH 1/3] Check PHP version before running command --- bin/joomla | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/joomla b/bin/joomla index 84edd498..ae9af2b1 100755 --- a/bin/joomla +++ b/bin/joomla @@ -6,6 +6,11 @@ * @link http://github.com/joomlatools/joomlatools-console for the canonical source repository */ +if (version_compare(PHP_VERSION, '7.1.3', '<')) { + echo "This command requires at least PHP version 7.1.3 to run"; + die(); +} + $dirs = explode(DIRECTORY_SEPARATOR, __DIR__); for ($i = count($dirs); $i >= 0; $i--) { From b1d93a370ec5c31ad05ca96085c09b9abb404ebf Mon Sep 17 00:00:00 2001 From: Steven Rombauts Date: Tue, 31 Jul 2018 11:42:35 +0100 Subject: [PATCH 2/3] Use exit code 1 --- bin/joomla | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/joomla b/bin/joomla index ae9af2b1..c5c97877 100755 --- a/bin/joomla +++ b/bin/joomla @@ -6,9 +6,10 @@ * @link http://github.com/joomlatools/joomlatools-console for the canonical source repository */ -if (version_compare(PHP_VERSION, '7.1.3', '<')) { - echo "This command requires at least PHP version 7.1.3 to run"; - die(); +if (version_compare(PHP_VERSION, '7.1.3', '<')) +{ + echo "This command requires at least PHP version 7.1.3 to run. Exiting."; + exit(1); } $dirs = explode(DIRECTORY_SEPARATOR, __DIR__); From c25986ec7982e2a0463478d02804d6191cea91db Mon Sep 17 00:00:00 2001 From: Steven Rombauts Date: Tue, 31 Jul 2018 12:25:28 +0100 Subject: [PATCH 3/3] Prepare 1.5.2 release --- CHANGELOG.md | 3 +++ src/Joomlatools/Console/Application.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97775863..06786177 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ in 1.x versions. To get the diff for a specific change, go to https://github.com/joomlatools/joomlatools-console/commit/xxx where xxx is the change hash. To view the diff between two versions, go to https://github.com/joomlatools/joomlatools-console/compare/v1.0.0...v1.0.1 +* 1.5.2 (2018-07-31) + * Improved - Exit with a meaningful message if PHP version < 7.1.3. + * 1.5.1 (2018-06-19) * Improved - Upgrade to symfony/console 4.x [#86](https://github.com/joomlatools/joomlatools-console/issues/86) * Added - Add --mysql-db-prefix option, deprecating --mysql_db_prefix [#84](https://github.com/joomlatools/joomlatools-console/issues/84) diff --git a/src/Joomlatools/Console/Application.php b/src/Joomlatools/Console/Application.php index 9120ff20..fdab5d99 100644 --- a/src/Joomlatools/Console/Application.php +++ b/src/Joomlatools/Console/Application.php @@ -11,7 +11,7 @@ class Application extends \Symfony\Component\Console\Application * * @var string */ - const VERSION = '1.5.1'; + const VERSION = '1.5.2'; /** * Application name