Skip to content

Commit 322efca

Browse files
authored
Merge pull request #118 from laravel/drop-php72
Drop support for PHP 7.2
2 parents 5966c24 + d3edd2a commit 322efca

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: true
1515
matrix:
16-
php: [7.2, 7.3, 7.4]
16+
php: [7.3, 7.4]
1717

1818
name: PHP ${{ matrix.php }}
1919

src/NewCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ protected function configure()
4141
*/
4242
protected function execute(InputInterface $input, OutputInterface $output)
4343
{
44+
if (version_compare(PHP_VERSION, '7.3.0', '<')) {
45+
throw new RuntimeException('The Laravel installer requires PHP 7.3.0 or greater. Please use "composer create-project laravel/laravel" instead.');
46+
}
47+
4448
if (! extension_loaded('zip')) {
4549
throw new RuntimeException('The Zip PHP extension is not installed. Please install it and try again.');
4650
}

0 commit comments

Comments
 (0)