various fixes vor php 8.1 compatibility
Cherry-picked from https://git-gitea.tt-rss.org/fox/tt-rss/pulls/56, while excluding changes in vendor/ (causes compatiblity issues with PHP<8 [1]) and strftime-related ones (already re-applied in https://git-gitea.tt-rss.org/fox/tt-rss/pulls/66). [1] https://community.tt-rss.org/t/support-for-php-8-1/5089/9
This commit is contained in:
committed by
Chih-Hsuan Yen
parent
a395574516
commit
de1e218a83
@@ -70,7 +70,7 @@ class FeedItem_Atom extends FeedItem_Common {
|
||||
*
|
||||
* @return string the rewritten XML or original $content
|
||||
*/
|
||||
private function rewrite_content_to_base(?string $base = null, string $content) {
|
||||
private function rewrite_content_to_base(?string $base = null, ?string $content = '') {
|
||||
|
||||
if (!empty($base) && !empty($content)) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user