From 62f32ccadff77594f5b8e3ad24c4c2541ff35885 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Thu, 7 Aug 2025 22:19:45 +0200 Subject: PHPStan: finalise strictArrayFilter (#7794) As well as reportPossiblyNonexistentConstantArrayOffset. And disable PHPStan-next from GitHub Action, since the work is completed for now. --- cli/update-user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/update-user.php') diff --git a/cli/update-user.php b/cli/update-user.php index 946f296fa..7e50503b9 100755 --- a/cli/update-user.php +++ b/cli/update-user.php @@ -66,7 +66,7 @@ $values = [ 'max_posts_per_rss' => $cliOptions->maxPostsPerRss ?? null, ]; -$values = array_filter($values); +$values = array_filter($values, fn($value): bool => $value !== null && $value !== ''); $ok = FreshRSS_user_Controller::updateUser( $username, -- cgit v1.2.3