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/create-user.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/create-user.php') diff --git a/cli/create-user.php b/cli/create-user.php index cbcc89ba4..0276e80b3 100755 --- a/cli/create-user.php +++ b/cli/create-user.php @@ -75,7 +75,7 @@ $values = [ 'max_posts_per_rss' => $cliOptions->maxPostsPerRss ?? null, ]; -$values = array_filter($values); +$values = array_filter($values, fn($v): bool => $v !== null && $v !== ''); $ok = FreshRSS_user_Controller::createUser( $username, -- cgit v1.2.3