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:
@@ -39,7 +39,7 @@ class DOMFormatException extends Exception
|
||||
* @param $previous
|
||||
* @param DesignElement|null $node DOMNode causing the DOMFormatException
|
||||
*/
|
||||
public function __construct($message, $code = null, $previous = null, DesignElement $node = null)
|
||||
public function __construct($message, $code = 0, $previous = null, DesignElement $node = null)
|
||||
{
|
||||
if($node !== null)
|
||||
{
|
||||
|
||||
@@ -70,7 +70,7 @@ class MFException extends Exception
|
||||
*
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function __construct($message = null, $code = null, $iSourceLineNumber = 0, $sXPath = '', $sExtraInfo = '', $previous = null)
|
||||
public function __construct($message = null, $code = 0, $iSourceLineNumber = 0, $sXPath = '', $sExtraInfo = '', $previous = null)
|
||||
{
|
||||
parent::__construct($message, $code, $previous);
|
||||
$this->iSourceLineNumber = $iSourceLineNumber;
|
||||
|
||||
Reference in New Issue
Block a user