From 7d15cd3267668c5bf0f6dfd3da5a4a794a492914 Mon Sep 17 00:00:00 2001 From: MDW Date: Sun, 17 Mar 2024 13:03:21 +0100 Subject: [PATCH] Fix PhanUndeclaredFunctionInCallable by disabling notification in specific case --- htdocs/core/class/rssparser.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/core/class/rssparser.class.php b/htdocs/core/class/rssparser.class.php index e6cfa44e23e..4fa6b8eed6d 100644 --- a/htdocs/core/class/rssparser.class.php +++ b/htdocs/core/class/rssparser.class.php @@ -289,7 +289,9 @@ class RssParser } xml_set_object($xmlparser, $this); + // @phan-suppress-next-line PhanUndeclaredFunctionInCallable xml_set_element_handler($xmlparser, 'feed_start_element', 'feed_end_element'); + // @phan-suppress-next-line PhanUndeclaredFunctionInCallable xml_set_character_data_handler($xmlparser, 'feed_cdata'); $status = xml_parse($xmlparser, $str, false);