items as $oArrayItem){ if ($oArrayItem->key instanceof Int_||$oArrayItem->key instanceof String_||$oArrayItem->key instanceof ConstFetch) { //dictionnary $sKey = PhpExpressionEvaluator::GetInstance()->EvaluateExpression($oArrayItem->key); if (is_null($sKey)){ continue; } } else { //array $sKey = $iIndex++; } try { $oValue = $oArrayItem->value; $oEvaluatuedValue = PhpExpressionEvaluator::GetInstance()->EvaluateExpression($oValue); $aModuleInformation[$sKey]=$oEvaluatuedValue; } catch(ModuleFileReaderException $e){ //required to support legacy below dump dependency //'dependencies' => ['itop-config-mgmt/2.0.0'||'itop-structure/3.0.0'] continue; } } return $aModuleInformation; } }