X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Flibs%2FHtmlArmor.php;h=6e6ad7c9b42cf746704fc99e9bbc31a8d752614b;hb=f79fe2017a71d8ed73e182c135c5b4aec8f47402;hp=4ba1bc316b0f5cb5600773d930910f85c6c2e7ab;hpb=1e3c2e5904d628c001a8d65909b135ea9bf042aa;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/HtmlArmor.php b/includes/libs/HtmlArmor.php index 4ba1bc316b..6e6ad7c9b4 100644 --- a/includes/libs/HtmlArmor.php +++ b/includes/libs/HtmlArmor.php @@ -16,7 +16,7 @@ * http://www.gnu.org/copyleft/gpl.html * * @file - * @license GPL-2.0+ + * @license GPL-2.0-or-later * @author Kunal Mehta */ @@ -28,12 +28,12 @@ class HtmlArmor { /** - * @var string + * @var string|null */ private $value; /** - * @param string $value + * @param string|null $value */ public function __construct( $value ) { $this->value = $value; @@ -44,7 +44,8 @@ class HtmlArmor { * and get safe HTML back * * @param string|HtmlArmor $input - * @return string safe for usage in HTML + * @return string|null safe for usage in HTML, or null + * if the HtmlArmor instance was wrapping null. */ public static function getHtml( $input ) { if ( $input instanceof HtmlArmor ) {