From 5b42f67a998dc76f647d2ab0613f66defe5acb76 Mon Sep 17 00:00:00 2001 From: Pierre Goiffon Date: Wed, 11 Aug 2021 17:22:21 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B03867=20Code=20review:=20remove=20conditi?= =?UTF-8?q?on=20that=20is=20quite=20too=20strict=20(danger=20!!)=20Thanks?= =?UTF-8?q?=20@odain=20!?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/iTopConfigParser.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/iTopConfigParser.php b/core/iTopConfigParser.php index 1e03adb31..97327bca1 100644 --- a/core/iTopConfigParser.php +++ b/core/iTopConfigParser.php @@ -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; }