From 6e2f2f1c1e98ecd86aa89c6547beb742d7385d18 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 11 May 2023 13:02:04 +0200 Subject: A few additional PHPStan rules (#5388) A subset of https://github.com/phpstan/phpstan-strict-rules --- app/actualize_script.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/actualize_script.php') diff --git a/app/actualize_script.php b/app/actualize_script.php index 67dcc9631..93479e74d 100755 --- a/app/actualize_script.php +++ b/app/actualize_script.php @@ -42,7 +42,7 @@ function notice(string $message): void { // Avoid having multiple actualization processes at the same time $mutexFile = TMP_PATH . '/actualize.freshrss.lock'; $mutexTtl = 900; // seconds (refreshed before each new feed) -if (file_exists($mutexFile) && ((time() - @filemtime($mutexFile)) > $mutexTtl)) { +if (file_exists($mutexFile) && ((time() - (@filemtime($mutexFile) ?: 0)) > $mutexTtl)) { unlink($mutexFile); } -- cgit v1.2.3