Skip to content

Commit bf22913

Browse files
committed
Just stop people right there.
1 parent 2a8d336 commit bf22913

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/Console/Commands/UpgradeCommand.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,16 @@ class UpgradeCommand extends Command
3535
public function handle()
3636
{
3737
$skipDownload = $this->option('skip-download');
38-
3938
if (!$skipDownload) {
4039
$this->output->warning('This command does not verify the integrity of downloaded assets. Please ensure that you trust the download source before continuing. If you do not wish to download an archive, please indicate that using the --skip-download flag, or answering "no" to the question below.');
4140
$this->output->comment('Download Source (set with --url=):');
4241
$this->line($this->getUrl());
4342
}
4443

44+
if (version_compare(PHP_VERSION, '7.4.0') < 0) {
45+
$this->error('Cannot execute self-upgrade process. The minimum required PHP version required is 7.4.0, you have [' . PHP_VERSION . '].');
46+
}
47+
4548
$user = 'www-data';
4649
if ($this->input->isInteractive()) {
4750
if (!$skipDownload) {

0 commit comments

Comments
 (0)