diff options
| author | 2022-02-07 01:35:29 +0100 | |
|---|---|---|
| committer | 2022-02-07 01:35:29 +0100 | |
| commit | 946b0a0876f1c14ada9ceac62a70d6af170a2d33 (patch) | |
| tree | da266af10fe8a5ea9c1e7a86b6fd8083fb010444 /lib/lib_rss.php | |
| parent | ede82f9819e1fa6aafd2cb27010c84ef18bb06c0 (diff) | |
Hot fix: fix type hint null regression (#4207)
Diffstat (limited to 'lib/lib_rss.php')
| -rw-r--r-- | lib/lib_rss.php | 5 |
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( |
