From 9d62e87de40eb96d9365b51f95f64f9a7c449fb9 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 18 May 2022 18:04:07 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04517=20-=20PHP=208.1:=20Fix=20MFElement:?= =?UTF-8?q?:=5F=5Fconstruct()=20being=20called=20with=20$namespaceURI=20as?= =?UTF-8?q?=20null=20when=20it=20should=20be=20strictly=20a=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MFDocument::createElement() default value for $namespaceURI is now a string --- setup/modelfactory.class.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index bdaf40ac5..3fd816f37 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -2561,12 +2561,14 @@ class MFDocument extends \Combodo\iTop\DesignDocument * * @param string $sName * @param null $value - * @param null $namespaceURI + * @param string $namespaceURI * * @return \MFElement * @throws \Exception + * + * @since 3.1.0 N°4517 $namespaceURI parameter must be empty string by default so */ - function createElement($sName, $value = null, $namespaceURI = null) + function createElement($sName, $value = null, $namespaceURI = '') { /** @var \MFElement $oElement */ $oElement = $this->importNode(new MFElement($sName, null, $namespaceURI));