mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
N°7629: improve InterfaceDiscovery::GetCandidateClasses robustness
This commit is contained in:
@@ -178,6 +178,13 @@ class InterfaceDiscovery
|
||||
continue;
|
||||
}
|
||||
$aTmpClassMap = include $sAutoloadFile;
|
||||
if (! is_array($aTmpClassMap)) {
|
||||
//can happen when setup compilation broken in the middle
|
||||
//ex: $sAutoloadFile could be empty and $aTmpClassMap is a int
|
||||
$aAutoloaderErrors[] = $sAutoloadFile;
|
||||
continue;
|
||||
}
|
||||
|
||||
/** @noinspection SlowArrayOperationsInLoopInspection we are getting an associative array so the documented workarounds cannot be used */
|
||||
$aClassMap = array_merge($aClassMap, $aTmpClassMap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user