From 59124e994aafda235208e5e91aed747ca746dc5e Mon Sep 17 00:00:00 2001 From: Sergio Brighenti Date: Sun, 19 Jun 2022 23:29:59 +0200 Subject: [PATCH] bump minimum php version --- bin/clean | 2 +- bin/migrate | 2 +- index.php | 2 +- install/index.php | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/clean b/bin/clean index 7a59a17..953089b 100644 --- a/bin/clean +++ b/bin/clean @@ -1,6 +1,6 @@ #!/usr/bin/env php = 7 && PHP_MINOR_VERSION >= 2) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.2 or above is required to run XBackBone.'); +((PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 3) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.3 or above is required to run XBackBone.'); if (PHP_SAPI !== 'cli') { die(); } diff --git a/bin/migrate b/bin/migrate index e8cc23f..9a421aa 100644 --- a/bin/migrate +++ b/bin/migrate @@ -1,6 +1,6 @@ #!/usr/bin/env php = 7 && PHP_MINOR_VERSION >= 2) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.2 or above is required to run XBackBone.'); +((PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 3) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.3 or above is required to run XBackBone.'); if (PHP_SAPI !== 'cli') { die(); } diff --git a/index.php b/index.php index 521f8c5..72c9b9c 100644 --- a/index.php +++ b/index.php @@ -1,6 +1,6 @@ = 7 && PHP_MINOR_VERSION >= 2) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.2 or above is required to run XBackBone.'); +((PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 3) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.3 or above is required to run XBackBone.'); require __DIR__.'/vendor/autoload.php'; define('BASE_DIR', realpath(__DIR__).DIRECTORY_SEPARATOR); diff --git a/install/index.php b/install/index.php index d561856..7ae5cd1 100644 --- a/install/index.php +++ b/install/index.php @@ -1,6 +1,6 @@ = 7 && PHP_MINOR_VERSION >= 2) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.2 or above is required to run XBackBone.'); +((PHP_MAJOR_VERSION >= 7 && PHP_MINOR_VERSION >= 3) || PHP_MAJOR_VERSION > 7) ?: die('Sorry, PHP 7.3 or above is required to run XBackBone.'); require __DIR__.'/../vendor/autoload.php'; use App\Database\Migrator; @@ -9,13 +9,13 @@ use App\Web\Session; use App\Web\View; use DI\Bridge\Slim\Bridge; use DI\ContainerBuilder; -use function DI\factory; -use function DI\get; -use function DI\value; use League\Flysystem\FileExistsException; use Psr\Container\ContainerInterface as Container; use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ServerRequestInterface as Request; +use function DI\factory; +use function DI\get; +use function DI\value; define('PLATFORM_VERSION', json_decode(file_get_contents(__DIR__.'/../composer.json'))->version); define('BASE_DIR', realpath(__DIR__.'/../').DIRECTORY_SEPARATOR);