mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-15 18:53:57 -04:00
PHPStan 1.11 + minor update dev dependencies (#6459)
* PHPStan 1.11 + minor update dev dependencies https://github.com/phpstan/phpstan/releases/tag/1.11.0 * Comment style
This commit is contained in:
committed by
GitHub
parent
f958eaef2f
commit
2d17c020b6
@@ -267,7 +267,7 @@ class FreshRSS_update_Controller extends FreshRSS_ActionController {
|
||||
$res = !self::hasGitUpdate();
|
||||
} else {
|
||||
require(UPDATE_FILENAME);
|
||||
// @phpstan-ignore-next-line
|
||||
// @phpstan-ignore function.notFound
|
||||
$res = do_post_update();
|
||||
}
|
||||
|
||||
@@ -290,12 +290,12 @@ class FreshRSS_update_Controller extends FreshRSS_ActionController {
|
||||
} else {
|
||||
require(UPDATE_FILENAME);
|
||||
if (Minz_Request::isPost()) {
|
||||
// @phpstan-ignore-next-line
|
||||
// @phpstan-ignore function.notFound
|
||||
save_info_update();
|
||||
}
|
||||
// @phpstan-ignore-next-line
|
||||
// @phpstan-ignore function.notFound
|
||||
if (!need_info_update()) {
|
||||
// @phpstan-ignore-next-line
|
||||
// @phpstan-ignore function.notFound
|
||||
$res = apply_update();
|
||||
} else {
|
||||
return;
|
||||
|
||||
@@ -349,8 +349,8 @@ class FreshRSS_Feed extends Minz_Model {
|
||||
public function load(bool $loadDetails = false, bool $noCache = false): ?SimplePie {
|
||||
if ($this->url != '') {
|
||||
/**
|
||||
* @phpstan-ignore-next-line
|
||||
* @throws Minz_FileNotExistException
|
||||
* @phpstan-ignore if.alwaysFalse
|
||||
*/
|
||||
if (CACHE_PATH == '') {
|
||||
throw new Minz_FileNotExistException(
|
||||
|
||||
@@ -383,6 +383,7 @@ SQL;
|
||||
}
|
||||
$sql .= ' AND et.id_entry IN (' . str_repeat('?,', count($entries) - 1). '?)';
|
||||
if (is_array($entries[0])) {
|
||||
/** @var array<array<string,string>> $entries */
|
||||
foreach ($entries as $entry) {
|
||||
if (!empty($entry['id'])) {
|
||||
$values[] = $entry['id'];
|
||||
@@ -394,6 +395,7 @@ SQL;
|
||||
$values[] = $entry->id();
|
||||
}
|
||||
} else {
|
||||
/** @var array<numeric-string> $entries */
|
||||
foreach ($entries as $entry) {
|
||||
$values[] = $entry;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<h1><?= _t('admin.update') ?></h1>
|
||||
|
||||
<?php
|
||||
// @phpstan-ignore-next-line
|
||||
// @phpstan-ignore function.notFound
|
||||
ask_info_update();
|
||||
?>
|
||||
</main>
|
||||
|
||||
Reference in New Issue
Block a user