Skip to content

Commit 54f3226

Browse files
authored
The Laravel Installer requires PHP-7.3 at least (#132)
1 parent 6dfb730 commit 54f3226

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^7.2.9",
13+
"php": "^7.3",
1414
"symfony/console": "^4.0|^5.0",
1515
"symfony/process": "^4.2|^5.0"
1616
},

src/NewCommand.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ protected function execute(InputInterface $input, OutputInterface $output)
6969

7070
sleep(1);
7171

72-
if (version_compare(PHP_VERSION, '7.3.0', '<')) {
73-
throw new RuntimeException('The Laravel installer requires PHP 7.3.0 or greater. Please use "composer create-project laravel/laravel" instead.');
74-
}
75-
7672
$name = $input->getArgument('name');
7773

7874
$directory = $name && $name !== '.' ? getcwd().'/'.$name : '.';

0 commit comments

Comments
 (0)