From 09b0ac38ef3e1d60210496ace32ce4840f661fa7 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Wed, 18 May 2022 18:06:01 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04517=20-=20PHP=208.1:=20Hide=20(for=20no?= =?UTF-8?q?w)=20deprecate=20notices=20of=20mismatching=20return=20types=20?= =?UTF-8?q?when=20union=20types=20as=20it=20would=20not=20be=20supported?= =?UTF-8?q?=20by=20PHP=207.2=20=3D>=207.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/designdocument.class.inc.php | 1 + setup/modelfactory.class.inc.php | 1 + 2 files changed, 2 insertions(+) diff --git a/core/designdocument.class.inc.php b/core/designdocument.class.inc.php index a9448859d..ae873adba 100644 --- a/core/designdocument.class.inc.php +++ b/core/designdocument.class.inc.php @@ -77,6 +77,7 @@ class DesignDocument extends DOMDocument * * @return int */ + #[\ReturnTypeWillChange] public function save($filename, $options = 0) { $this->documentElement->setAttribute('xmlns:xsi', "http://www.w3.org/2001/XMLSchema-instance"); diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index 3fd816f37..347a2e040 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -2538,6 +2538,7 @@ class MFDocument extends \Combodo\iTop\DesignDocument * @return string * @throws \Exception */ + #[\ReturnTypeWillChange] public function saveXML(DOMNode $node = null, $options = 0) { $oRootNode = $this->firstChild;