diff options
| author | 2022-06-19 20:08:42 +0200 | |
|---|---|---|
| committer | 2022-06-19 20:08:42 +0200 | |
| commit | f365a9aeb44c33a1c817ae19a6027aa0fbffd706 (patch) | |
| tree | 6f93f55d5c71eda6672168a7f1250ad1d784c5ef /lib | |
| parent | 238e55b2fd7f08b5ce866b712c43c1a8fa03a657 (diff) | |
Update all test dependencies (#4419)
* Update all test dependencies
* Remove old false-positive
* Minor update lock files
* Increase PHPStan memory for Fedora
https://github.com/FreshRSS/FreshRSS/pull/4400#issuecomment-1159514197
* Require PHP8+ for tests
Due to small changes of signature in `ob_implicit_flush` and `simplexml_load_string`, cf. https://github.com/FreshRSS/FreshRSS/pull/4123
* Missing lint in CSS files
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/lib_opml.php | 1 | ||||
| -rw-r--r-- | lib/lib_rss.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/lib_opml.php b/lib/lib_opml.php index 04b747a05..86847d720 100644 --- a/lib/lib_opml.php +++ b/lib/lib_opml.php @@ -262,6 +262,7 @@ function libopml_render_outline($parent_elt, $outline, $strict) { $outline_elt = $parent_elt->addChild('outline'); $text_is_present = false; + /** @var string|array<string,mixed> $value */ foreach ($outline as $key => $value) { // Only outlines can be an array and so we consider children are also // outline elements. diff --git a/lib/lib_rss.php b/lib/lib_rss.php index 5a608d3fd..648c9328c 100644 --- a/lib/lib_rss.php +++ b/lib/lib_rss.php @@ -351,7 +351,7 @@ function cleanCache(int $hours = 720) { * @return string an HTML string with XML encoding information for DOMDocument::loadHTML() */ function enforceHttpEncoding(string $html, string $contentType = ''): string { - $httpCharset = preg_match('/\bcharset=([0-9a-z_-]{2,12})$/i', $contentType, $matches) === false ? '' : $matches[1] ?? ''; + $httpCharset = preg_match('/\bcharset=([0-9a-z_-]{2,12})$/i', $contentType, $matches) === false ? '' : $matches[1]; if ($httpCharset == '') { // No charset defined by HTTP, do nothing return $html; |
