N°8681 - Enforce type hint for parameters and return value

This commit is contained in:
Molkobain
2026-02-17 20:55:55 +01:00
parent a5296e11e1
commit 3fdbcbc0fb
2 changed files with 17 additions and 3 deletions

View File

@@ -95,7 +95,19 @@ class AttributeText extends AttributeString
return 65535;
}
public static function RenderWikiHtml($sText, $bWikiOnly = false)
/**
* @param string|null $sText
* @param bool $bWikiOnly
*
* @return string
* @throws \ArchivedObjectException
* @throws \ConfigException
* @throws \CoreException
* @throws \DictExceptionMissingString
*
* @since 3.3.0 N°8681 Add type hint for parameters and return value
*/
public static function RenderWikiHtml(string|null $sText, bool $bWikiOnly = false): string
{
// N°8681 - Ensure to have a string value
$sText = $sText ?? '';