mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +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
|
||||
$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);
|
||||
|
||||
Reference in New Issue
Block a user