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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user