dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Database: Allow selectFieldValues() to accept SQL fragments
[lhc/web/wiklou.git]
/
includes
/
libs
/
HtmlArmor.php
diff --git
a/includes/libs/HtmlArmor.php
b/includes/libs/HtmlArmor.php
index
4ba1bc3
..
6e6ad7c
100644
(file)
--- a/
includes/libs/HtmlArmor.php
+++ b/
includes/libs/HtmlArmor.php
@@
-16,7
+16,7
@@
* http://www.gnu.org/copyleft/gpl.html
*
* @file
* http://www.gnu.org/copyleft/gpl.html
*
* @file
- * @license GPL-2.0
+
+ * @license GPL-2.0
-or-later
* @author Kunal Mehta <legoktm@member.fsf.org>
*/
* @author Kunal Mehta <legoktm@member.fsf.org>
*/
@@
-28,12
+28,12
@@
class HtmlArmor {
/**
class HtmlArmor {
/**
- * @var string
+ * @var string
|null
*/
private $value;
/**
*/
private $value;
/**
- * @param string $value
+ * @param string
|null
$value
*/
public function __construct( $value ) {
$this->value = $value;
*/
public function __construct( $value ) {
$this->value = $value;
@@
-44,7
+44,8
@@
class HtmlArmor {
* 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 ) {