mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-18 23:08:46 +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:
@@ -34,7 +34,7 @@ class MissingDependencyException extends CoreException
|
||||
{
|
||||
/**
|
||||
* @see \ModuleDiscovery::OrderModulesByDependencies property init
|
||||
* @var array<string, array<string>>
|
||||
* @var array<string, array<array>>
|
||||
* module id as key
|
||||
* another array as value, containing : 'module' with module info, 'dependencies' with missing dependencies
|
||||
*/
|
||||
@@ -410,6 +410,7 @@ class ModuleDiscovery
|
||||
continue;
|
||||
}
|
||||
|
||||
/** @var array|null $aCurrentModuleInfo */
|
||||
$aCurrentModuleInfo = $oExtension->aModuleInfo[$sModuleName] ?? null;
|
||||
if (is_null($aCurrentModuleInfo)) {
|
||||
SetupLog::Warning("Missing $sModuleName in ".$oExtension->sLabel.". it should not happen");
|
||||
|
||||
Reference in New Issue
Block a user