From a23361d8573292e5ab79f89bd52b951df8b7df11 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Wed, 10 May 2023 11:37:17 +0200 Subject: [PATCH] no more needed --- src/Backend.php | 2 +- src/Frontend.php | 2 +- src/My.php | 11 ----------- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/Backend.php b/src/Backend.php index 93b6826..34de926 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -21,7 +21,7 @@ class Backend extends dcNsProcess { public static function init(): bool { - static::$init = defined('DC_CONTEXT_ADMIN') && My::phpCompliant(); + static::$init = defined('DC_CONTEXT_ADMIN'); return static::$init; } diff --git a/src/Frontend.php b/src/Frontend.php index 6488fcd..57729ec 100644 --- a/src/Frontend.php +++ b/src/Frontend.php @@ -21,7 +21,7 @@ class Frontend extends dcNsProcess { public static function init(): bool { - static::$init = My::phpCompliant(); + static::$init = defined('DC_RC_PATH'); return static::$init; } diff --git a/src/My.php b/src/My.php index 08fe385..45dfdfa 100644 --- a/src/My.php +++ b/src/My.php @@ -21,9 +21,6 @@ use dcCore; */ class My { - /** @var string Required php version */ - public const PHP_MIN = '7.4'; - /** * This module id. */ @@ -49,12 +46,4 @@ class My { return dirname(__DIR__); } - - /** - * Check this module PHP version compliant. - */ - public static function phpCompliant(): bool - { - return version_compare(phpversion(), self::PHP_MIN, '>='); - } }