Skip to content

Commit

Permalink
Drop support for PHP 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
driesvints committed May 21, 2020
1 parent 5966c24 commit 33bea08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand Down
4 changes: 4 additions & 0 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down

0 comments on commit 33bea08

Please sign in to comment.