aboutsummaryrefslogtreecommitdiff
path: root/cli/update-user.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2025-08-07 22:19:45 +0200
committerGravatar GitHub <noreply@github.com> 2025-08-07 22:19:45 +0200
commit62f32ccadff77594f5b8e3ad24c4c2541ff35885 (patch)
tree29689e66fd16fcbeb385cda554890d45d66e58c2 /cli/update-user.php
parent149136fbe252cca4cb8dcdb463df135094bc0f87 (diff)
PHPStan: finalise strictArrayFilter (#7794)
As well as reportPossiblyNonexistentConstantArrayOffset. And disable PHPStan-next from GitHub Action, since the work is completed for now.
Diffstat (limited to 'cli/update-user.php')
-rwxr-xr-xcli/update-user.php2
1 files changed, 1 insertions, 1 deletions
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,