mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°8395 - php8.1 compatibility in class extended Exception
This commit is contained in:
@@ -1826,7 +1826,7 @@ EOF;
|
|||||||
// Search field in parent class
|
// Search field in parent class
|
||||||
$oField = $this->GetFieldInParentClasses($oClass, $sStateAttCode);
|
$oField = $this->GetFieldInParentClasses($oClass, $sStateAttCode);
|
||||||
if ($oField == null) {
|
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);
|
$oCodeNodes = $this->oFactory->GetNodes('values/value/code', $oField);
|
||||||
|
|||||||
@@ -2040,7 +2040,7 @@ class MFElement extends Combodo\iTop\DesignElement
|
|||||||
{
|
{
|
||||||
// Houston!
|
// Houston!
|
||||||
$sXPath = DesignDocument::GetItopNodePath($this);
|
$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();
|
$res[$key] = $oItem->GetNodeAsArrayOfItems();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user