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:
David Edler
2021-11-30 21:50:09 +01:00
committed by Chih-Hsuan Yen
parent a395574516
commit de1e218a83
5 changed files with 5 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ class Feeds extends Handler_Protected {
*/
private function _format_headlines_list($feed, string $method, string $view_mode, int $limit, bool $cat_view,
int $offset, string $override_order, bool $include_children, ?int $check_first_id = null,
bool $skip_first_id_check, string $order_by): array {
?bool $skip_first_id_check = false, ? string $order_by = ''): array {
$disable_cache = false;