Miscellaneous static analysis improvements for php 7.1 (#620)

* Miscellaneous static analysis improvements for php 7.1

* Update changes.txt
This commit is contained in:
Yury Pikhtarev 2023-03-17 22:02:00 +07:00 committed by GitHub
commit 7019d31353
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
37 changed files with 156 additions and 151 deletions

View file

@ -51,11 +51,11 @@ $row = DB()->fetch_row("
LIMIT 1
");
$output['files'][$info_hash] = array(
$output['files'][$info_hash] = [
'complete' => (int)$row['seeders'],
'downloaded' => (int)$row['complete_count'],
'incomplete' => (int)$row['leechers'],
);
];
echo \Rych\Bencode\Bencode::encode($output);