1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 11:55:56 +00:00

minor phpstan tweaks

This commit is contained in:
Andrew Dolgov
2021-10-22 13:49:08 +03:00
parent 3b70d1f622
commit 9f734c9050
5 changed files with 15 additions and 12 deletions

View File

@@ -307,6 +307,7 @@ class API extends Handler {
$article_ids = explode(',', clean($_REQUEST['article_id'] ?? ''));
$sanitize_content = self::_param_to_bool($_REQUEST['sanitize'] ?? true);
// @phpstan-ignore-next-line
if (count($article_ids)) {
$entries = ORM::for_table('ttrss_entries')
->table_alias('e')
@@ -369,7 +370,6 @@ class API extends Handler {
}
$this->_wrap(self::STATUS_OK, $articles);
// @phpstan-ignore-next-line
} else {
$this->_wrap(self::STATUS_ERR, ['error' => self::E_INCORRECT_USAGE]);
}