aboutsummaryrefslogtreecommitdiff
path: root/cli/reconfigure.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/reconfigure.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/reconfigure.php')
-rwxr-xr-xcli/reconfigure.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/reconfigure.php b/cli/reconfigure.php
index ef86516f9..f2c86a8d4 100755
--- a/cli/reconfigure.php
+++ b/cli/reconfigure.php
@@ -113,7 +113,8 @@ foreach ($values as $name => $value) {
}
}
-$db = array_merge(FreshRSS_Context::systemConf()->db, array_filter($dbValues));
+$db = array_merge(FreshRSS_Context::systemConf()->db,
+ array_filter($dbValues, fn(?string $v): bool => $v !== null && trim($v) !== ''));
performRequirementCheck($db['type']);