diff --git a/application/utils.inc.php b/application/utils.inc.php index 22d5dd2252..315013dede 100644 --- a/application/utils.inc.php +++ b/application/utils.inc.php @@ -2724,7 +2724,7 @@ HTML; * @return array * @since 3.0.0 */ - public static function GetClassesForInterface(string $sInterface, string $sClassNameFilter = '', $aExcludedPath = ['[\\\\/]lib[\\\\/]', '[\\\\/]node_modules[\\\\/]', '[\\\\/]test[\\\\/]']): array + public static function GetClassesForInterface(string $sInterface, string $sClassNameFilter = '', $aExcludedPath = []): array { $aMatchingClasses = []; diff --git a/sources/Application/Service/EventService.php b/sources/Application/Service/EventService.php index 6d7ee60419..786a45caed 100644 --- a/sources/Application/Service/EventService.php +++ b/sources/Application/Service/EventService.php @@ -42,7 +42,7 @@ class EventService self::$iEventIdCounter = 0; self::$aEventDescription = []; - $aEventServiceSetup = utils::GetClassesForInterface(iEventServiceSetup::class); + $aEventServiceSetup = utils::GetClassesForInterface(iEventServiceSetup::class, '', ['[\\\\/]lib[\\\\/]', '[\\\\/]node_modules[\\\\/]', '[\\\\/]test[\\\\/]']); foreach ($aEventServiceSetup as $sEventServiceSetupClass) { /** @var \Combodo\iTop\Service\iEventServiceSetup $oEventServiceSetup */ $oEventServiceSetup = new $sEventServiceSetupClass();