From 72884813e13596d211471482ffdc6d723ed678c9 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Tue, 30 Sep 2025 16:59:41 -0400 Subject: Add hook enums (#8036) - add an enum to handle hook types (enum are available since PHP 8.1) - change hook calls from string value to enum value --- app/FreshRSS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/FreshRSS.php') diff --git a/app/FreshRSS.php b/app/FreshRSS.php index cac803329..0d433dc2b 100644 --- a/app/FreshRSS.php +++ b/app/FreshRSS.php @@ -66,7 +66,7 @@ class FreshRSS extends Minz_FrontController { self::checkEmailValidated(); } - Minz_ExtensionManager::callHookVoid('freshrss_init'); + Minz_ExtensionManager::callHookVoid(Minz_HookType::FreshrssInit); } private static function initAuth(): void { -- cgit v1.2.3