aboutsummaryrefslogtreecommitdiff
path: root/lib/lib_rss.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2022-02-07 01:35:29 +0100
committerGravatar GitHub <noreply@github.com> 2022-02-07 01:35:29 +0100
commit946b0a0876f1c14ada9ceac62a70d6af170a2d33 (patch)
treeda266af10fe8a5ea9c1e7a86b6fd8083fb010444 /lib/lib_rss.php
parentede82f9819e1fa6aafd2cb27010c84ef18bb06c0 (diff)
Hot fix: fix type hint null regression (#4207)
Diffstat (limited to 'lib/lib_rss.php')
-rw-r--r--lib/lib_rss.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/lib_rss.php b/lib/lib_rss.php
index b608743f3..e020236ea 100644
--- a/lib/lib_rss.php
+++ b/lib/lib_rss.php
@@ -193,7 +193,10 @@ function timestamptodate ($t, $hour = true) {
return @date ($date, $t);
}
-function html_only_entity_decode(string $text): string {
+/**
+ * @param string|null $text
+ */
+function html_only_entity_decode($text): string {
static $htmlEntitiesOnly = null;
if ($htmlEntitiesOnly === null) {
$htmlEntitiesOnly = array_flip(array_diff(