Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Commit

Permalink
index.php: PHP version check
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 4, 2021
1 parent e7f72ca commit 2ed56c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions www/checker/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
$tests[] = [
'title' => 'PHP version',
'required' => true,
'passed' => version_compare(PHP_VERSION, '7.4.0', '>='),
'passed' => version_compare(PHP_VERSION, '8.0.0', '>='),
'message' => PHP_VERSION,
'description' => 'Your PHP version is too old. Nette Framework requires at least PHP 7.4.0 or higher.',
'description' => 'Your PHP version is too old. Nette Framework requires at least PHP 8.0.0 or higher.',
];

$tests[] = [
Expand Down
4 changes: 2 additions & 2 deletions www/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

declare(strict_types=1);

if (PHP_VERSION_ID < 70400) {
exit('Nette Sandbox requires a PHP version 7.4 or newer. You are running ' . PHP_VERSION . '.');
if (PHP_VERSION_ID < 80000) {
exit('Nette Sandbox requires a PHP version 8.0 or newer. You are running ' . PHP_VERSION . '.');
}

require __DIR__ . '/../vendor/autoload.php';
Expand Down

0 comments on commit 2ed56c8

Please sign in to comment.