X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Flibs%2FHtmlArmor.php;h=6e6ad7c9b42cf746704fc99e9bbc31a8d752614b;hb=a97171eaff1c42b5b5b036766b4cbe9cdb80a769;hp=4ba1bc316b0f5cb5600773d930910f85c6c2e7ab;hpb=adae996840b9e782f6e14b21c433a83e37c3a74e;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 ) {