From 946b0a0876f1c14ada9ceac62a70d6af170a2d33 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 7 Feb 2022 01:35:29 +0100 Subject: Hot fix: fix type hint null regression (#4207) --- lib/lib_rss.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/lib_rss.php') 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( -- cgit v1.2.3