PHP 7.2 - minimal required version

This commit is contained in:
Max Pozdeev 2022-04-15 21:31:47 +03:00
parent 82318c6df0
commit a269392d48

View file

@ -5,9 +5,8 @@
Licensed under the GNU GPL version 2 or any later. See file COPYRIGHT for details.
*/
##### MyTinyTodo requires php 7.0 and above! #####
if (version_compare(PHP_VERSION, '7.0.0') < 0) {
die("PHP 7.0+ is required");
if (version_compare(PHP_VERSION, '7.2.0') < 0) {
die("PHP 7.2 or above is required");
}
if(!defined('MTTPATH')) define('MTTPATH', dirname(__FILE__) .'/');