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/actualize_script.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/actualize_script.php') diff --git a/app/actualize_script.php b/app/actualize_script.php index 2be2a117a..e64d0b707 100755 --- a/app/actualize_script.php +++ b/app/actualize_script.php @@ -96,7 +96,7 @@ foreach ($users as $user) { // NB: Extensions and hooks are reinitialised there $app->init(); - Minz_ExtensionManager::addHook('feed_before_actualize', static function (FreshRSS_Feed $feed) use ($mutexFile) { + Minz_ExtensionManager::addHook(Minz_HookType::FeedBeforeActualize, static function (FreshRSS_Feed $feed) use ($mutexFile) { touch($mutexFile); return $feed; }); -- cgit v1.2.3