Skip to content
Merged
4 changes: 2 additions & 2 deletions src/Application/Cli/PreviewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$cliConfig = $input->getOption('config');

if (!$this->isSupported()) {
$output->writeln('<error>PHP 5.4 or above is required to run the internal webserver</error>');
$output->writeln('<error>PHP 7.1 or above is required to run the internal webserver</error>');

return 1;
}
Expand Down Expand Up @@ -225,7 +225,7 @@ private function startLivereload(

private function isSupported(): bool
{
if (version_compare(phpversion(), '5.4.0', '<')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That isSupported() is for checking that PHP >= 5.4 because that's the version they added the built-in webserver.

We could completely remove that check now instead of upgrading the error message.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

if (version_compare(phpversion(), '7.1.0', '<')) {
return false;
}

Expand Down