From bf2291357f27404d33377b3ce0bdd59b5edf66ad Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 23 Jan 2021 16:32:43 -0800 Subject: [PATCH] Just stop people right there. --- app/Console/Commands/UpgradeCommand.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/UpgradeCommand.php b/app/Console/Commands/UpgradeCommand.php index a5e461391..d42964942 100644 --- a/app/Console/Commands/UpgradeCommand.php +++ b/app/Console/Commands/UpgradeCommand.php @@ -35,13 +35,16 @@ class UpgradeCommand extends Command public function handle() { $skipDownload = $this->option('skip-download'); - if (!$skipDownload) { $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.'); $this->output->comment('Download Source (set with --url=):'); $this->line($this->getUrl()); } + if (version_compare(PHP_VERSION, '7.4.0') < 0) { + $this->error('Cannot execute self-upgrade process. The minimum required PHP version required is 7.4.0, you have [' . PHP_VERSION . '].'); + } + $user = 'www-data'; if ($this->input->isInteractive()) { if (!$skipDownload) {