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
This commit is contained in:
Alexis Degrugillier authored and GitHub committed 2025-09-30 22:59:41 +02:00
1 parent bf6e634e04
commit 72884813e1
32 files changed
+200 -190

No files matched your search

+1 -1
View File
@@ -32,7 +32,7 @@ class FreshRSS_javascript_Controller extends FreshRSS_ActionController {
$databaseDAO = FreshRSS_Factory::createDatabaseDAO();
$databaseDAO->minorDbMaintenance();
Minz_ExtensionManager::callHookVoid('freshrss_user_maintenance');
Minz_ExtensionManager::callHookVoid(Minz_HookType::FreshrssUserMaintenance);
$catDAO = FreshRSS_Factory::createCategoryDao();
$this->view->categories = $catDAO->listCategoriesOrderUpdate(FreshRSS_Context::userConf()->dynamic_opml_ttl_default);