aboutsummaryrefslogtreecommitdiff
path: root/app/Models/Search.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Models/Search.php')
-rw-r--r--app/Models/Search.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Models/Search.php b/app/Models/Search.php
index 14d77cb6f..f5b061512 100644
--- a/app/Models/Search.php
+++ b/app/Models/Search.php
@@ -234,11 +234,11 @@ class FreshRSS_Search {
}
/**
- * @param array<string> $anArray
+ * @param array<string>|null $anArray
* @return array<string>
*/
- private static function removeEmptyValues($anArray): array {
- return empty($anArray) ? [] : array_filter($anArray, function($value) { return $value !== ''; });
+ private static function removeEmptyValues(?array $anArray): array {
+ return empty($anArray) ? [] : array_filter($anArray, static function(string $value) { return $value !== ''; });
}
/**