From 33bea08c76afc3d163620eef0e6d4779dbcc30eb Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Thu, 21 May 2020 17:22:19 +0200 Subject: [PATCH 1/2] Drop support for PHP 7.2 --- .github/workflows/tests.yml | 2 +- src/NewCommand.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5f61075b..edef6c5a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: true matrix: - php: [7.2, 7.3, 7.4] + php: [7.3, 7.4] name: PHP ${{ matrix.php }} diff --git a/src/NewCommand.php b/src/NewCommand.php index ed3e8af2..64b4682b 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -41,6 +41,10 @@ protected function configure() */ protected function execute(InputInterface $input, OutputInterface $output) { + if (version_compare(PHP_VERSION, '7.3.0', '<')) { + throw new RuntimeException('Installer not available for PHP 7.2. Please use "composer create-project laravel/laravel" instead.'); + } + if (! extension_loaded('zip')) { throw new RuntimeException('The Zip PHP extension is not installed. Please install it and try again.'); } From d3edd2a49e7be27d9d300e6ed951f65da4278549 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 21 May 2020 10:24:13 -0500 Subject: [PATCH 2/2] Update NewCommand.php --- src/NewCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NewCommand.php b/src/NewCommand.php index 64b4682b..cf7f54b0 100644 --- a/src/NewCommand.php +++ b/src/NewCommand.php @@ -42,7 +42,7 @@ protected function configure() protected function execute(InputInterface $input, OutputInterface $output) { if (version_compare(PHP_VERSION, '7.3.0', '<')) { - throw new RuntimeException('Installer not available for PHP 7.2. Please use "composer create-project laravel/laravel" instead.'); + throw new RuntimeException('The Laravel installer requires PHP 7.3.0 or greater. Please use "composer create-project laravel/laravel" instead.'); } if (! extension_loaded('zip')) {