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

Commit c3cc776

Browse files
committed
index.php: PHP version check
1 parent 1f8144a commit c3cc776

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

www/checker/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
$tests[] = [
4141
'title' => 'PHP version',
4242
'required' => true,
43-
'passed' => version_compare(PHP_VERSION, '7.4.0', '>='),
43+
'passed' => version_compare(PHP_VERSION, '8.0.0', '>='),
4444
'message' => PHP_VERSION,
45-
'description' => 'Your PHP version is too old. Nette Framework requires at least PHP 7.4.0 or higher.',
45+
'description' => 'Your PHP version is too old. Nette Framework requires at least PHP 8.0.0 or higher.',
4646
];
4747

4848
$tests[] = [

www/index.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
declare(strict_types=1);
44

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

99
require __DIR__ . '/../vendor/autoload.php';

0 commit comments

Comments
 (0)