From c8371f1c19a846b0a0a2e93792ac5d47f0486586 Mon Sep 17 00:00:00 2001 From: bdalsass Date: Mon, 7 Jul 2025 14:03:29 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B08395=20-=20php8.1=20compatibility=20in?= =?UTF-8?q?=20class=20extended=20Exception?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- setup/compiler.class.inc.php | 2 +- setup/modelfactory.class.inc.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/compiler.class.inc.php b/setup/compiler.class.inc.php index af02e7d2e..6bcd17c94 100644 --- a/setup/compiler.class.inc.php +++ b/setup/compiler.class.inc.php @@ -1826,7 +1826,7 @@ EOF; // Search field in parent class $oField = $this->GetFieldInParentClasses($oClass, $sStateAttCode); if ($oField == null) { - throw new DOMFormatException("Non existing attribute '$sStateAttCode'", null, null, $oStateAttribute); + throw new DOMFormatException("Non existing attribute '$sStateAttCode'", 0, null, $oStateAttribute); } } $oCodeNodes = $this->oFactory->GetNodes('values/value/code', $oField); diff --git a/setup/modelfactory.class.inc.php b/setup/modelfactory.class.inc.php index be361e4b5..e12064982 100644 --- a/setup/modelfactory.class.inc.php +++ b/setup/modelfactory.class.inc.php @@ -2040,7 +2040,7 @@ class MFElement extends Combodo\iTop\DesignElement { // Houston! $sXPath = DesignDocument::GetItopNodePath($this); - throw new DOMFormatException("id '$key' already used in $sXPath", null, null, $oItem); + throw new DOMFormatException("id '$key' already used in $sXPath", 0, null, $oItem); } $res[$key] = $oItem->GetNodeAsArrayOfItems(); }