1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 01:46:00 +00:00

Initial go at PHPStan rule level 6.

This commit is contained in:
wn_
2021-11-10 21:38:25 +00:00
parent 87a30d88d3
commit 4cc3374f9f
12 changed files with 93 additions and 48 deletions

View File

@@ -12,7 +12,7 @@
Config::sanity_check();
function make_stampfile($filename) {
function make_stampfile(string $filename): bool {
$fp = fopen(Config::get(Config::LOCK_DIRECTORY) . "/$filename", "w");
if (flock($fp, LOCK_EX | LOCK_NB)) {
@@ -25,7 +25,7 @@
}
}
function cleanup_tags($days = 14, $limit = 1000) {
function cleanup_tags(int $days = 14, int $limit = 1000): int {
$days = (int) $days;