mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-11 19:08:49 -04:00
Native array return type forgotten (#6046)
Native type forgotten from https://github.com/FreshRSS/FreshRSS/pull/5269 https://github.com/FreshRSS/FreshRSS/pull/5213
This commit is contained in:
committed by
GitHub
parent
9b1f971333
commit
4a0e8a7058
@@ -428,7 +428,7 @@ SQL;
|
||||
* 'error'?:int|bool,'cache_nbEntries'?:int,'cache_nbUnreads'?:int,'ttl'?:int}> $listDAO
|
||||
* @return array<int,FreshRSS_Category>
|
||||
*/
|
||||
private static function daoToCategoryPrepopulated(array $listDAO) {
|
||||
private static function daoToCategoryPrepopulated(array $listDAO): array {
|
||||
$list = [];
|
||||
$previousLine = [];
|
||||
$feedsDao = [];
|
||||
|
||||
@@ -1011,7 +1011,7 @@ SQL;
|
||||
*/
|
||||
protected function sqlListEntriesWhere(string $alias = '', ?FreshRSS_BooleanSearch $filters = null,
|
||||
int $state = FreshRSS_Entry::STATE_ALL,
|
||||
string $order = 'DESC', string $firstId = '', int $date_min = 0) {
|
||||
string $order = 'DESC', string $firstId = '', int $date_min = 0): array {
|
||||
$search = ' ';
|
||||
$values = [];
|
||||
if ($state & FreshRSS_Entry::STATE_NOT_READ) {
|
||||
@@ -1064,7 +1064,7 @@ SQL;
|
||||
*/
|
||||
private function sqlListWhere(string $type = 'a', int $id = 0, int $state = FreshRSS_Entry::STATE_ALL,
|
||||
string $order = 'DESC', int $limit = 1, string $firstId = '', ?FreshRSS_BooleanSearch $filters = null,
|
||||
int $date_min = 0) {
|
||||
int $date_min = 0): array {
|
||||
if (!$state) {
|
||||
$state = FreshRSS_Entry::STATE_ALL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user