mirror of
https://github.com/Combodo/iTop.git
synced 2026-03-06 09:34:13 +01:00
Fix type hinting
This commit is contained in:
@@ -116,10 +116,12 @@ class RenderingOutput
|
||||
*
|
||||
* @return \Combodo\iTop\Renderer\RenderingOutput
|
||||
*/
|
||||
public function AddHtml(string $sHtml, bool $bEncodeHtmlEntities = false)
|
||||
public function AddHtml(?string $sHtml, bool $bEncodeHtmlEntities = false)
|
||||
{
|
||||
$this->sHtml .= ($bEncodeHtmlEntities) ? htmlentities($sHtml, ENT_QUOTES, 'UTF-8') : $sHtml;
|
||||
|
||||
if (!is_null($sHtml)) {
|
||||
$this->sHtml .= ($bEncodeHtmlEntities) ? htmlentities($sHtml, ENT_QUOTES, 'UTF-8') : $sHtml;
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user