And that you'll get null back.
Change-Id: Ibd74e6af16b51796b46c2e23b7442740f5f69a0f
+ * @param string|null $value
*/
public function __construct( $value ) {
$this->value = $value;
*/
public function __construct( $value ) {
$this->value = $value;
* and get safe HTML back
*
* @param string|HtmlArmor $input
* 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 ) {
*/
public static function getHtml( $input ) {
if ( $input instanceof HtmlArmor ) {