N°3867 Code review: remove condition that is quite too strict (danger !!)

Thanks @odain !
This commit is contained in:
Pierre Goiffon
2021-08-11 17:22:21 +02:00
parent 0b9ccc8e67
commit 5b42f67a99

View File

@@ -125,9 +125,6 @@ class iTopConfigParser
$aCurrentRootVarMap =& $this->aVarsMap[$sCurrentRootVar];
foreach ($oAssignation->expr->items as $oItem) {
if (false === ($oItem->key instanceof PhpParser\Node\Scalar\String_)) {
continue;
}
$sValue = $prettyPrinter->prettyPrintExpr($oItem->value);
$aCurrentRootVarMap[$oItem->key->value] = $sValue;
}