From 8c276b9c6587fd70ae4f491d95cd60ec45318e61 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 26 Mar 2023 21:15:13 +0200 Subject: [PATCH] fix static init --- src/Install.php | 6 +++--- src/Prepend.php | 6 +++--- src/Uninstall.php | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/Install.php b/src/Install.php index 2945e25..84e444e 100644 --- a/src/Install.php +++ b/src/Install.php @@ -30,14 +30,14 @@ class Install extends dcNsProcess public static function init(): bool { - self::$init = defined('DC_CONTEXT_ADMIN') && dcCore::app()->newVersion(My::id(), dcCore::app()->plugins->moduleInfo(My::id(), 'version')); + static::$init = defined('DC_CONTEXT_ADMIN') && dcCore::app()->newVersion(My::id(), dcCore::app()->plugins->moduleInfo(My::id(), 'version')); - return self::$init; + return static::$init; } public static function process(): bool { - if (!self::$init) { + if (!static::$init) { return false; } diff --git a/src/Prepend.php b/src/Prepend.php index f0c227e..6d6ce06 100644 --- a/src/Prepend.php +++ b/src/Prepend.php @@ -21,14 +21,14 @@ class Prepend extends dcNsProcess { public static function init(): bool { - self::$init = true; + static::$init = true; - return self::$init; + return static::$init; } public static function process(): bool { - if (!self::$init) { + if (!static::$init) { return false; } diff --git a/src/Uninstall.php b/src/Uninstall.php index 7896269..65fcc71 100644 --- a/src/Uninstall.php +++ b/src/Uninstall.php @@ -20,14 +20,14 @@ class Uninstall public static function init(): bool { - self::$init = defined('DC_RC_PATH'); + static::$init = defined('DC_RC_PATH'); - return self::$init; + return static::$init; } public static function process($uninstaller): ?bool { - if (!self::$init) { + if (!static::$init) { return false; }