mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 06:18:44 +02:00
N°9144 Fix static analysis issues (#885)
* N°9144 Fix static analysis issues with phpstan * up to level 1 for all setup files * up to level 5 for all wizardsteps
This commit is contained in:
@@ -1288,7 +1288,7 @@ class ModelFactory
|
||||
if ($bExcludeWorkspace) {
|
||||
$aModules = [];
|
||||
foreach (self::$aLoadedModules as $oModule) {
|
||||
if (!$oModule instanceof MFWorkspace) {
|
||||
if (!class_exists('MFWorkspace') || !$oModule instanceof MFWorkspace) {
|
||||
$aModules[] = $oModule;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user