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. --- app/Models/Entry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Models/Entry.php') diff --git a/app/Models/Entry.php b/app/Models/Entry.php index 7ba0d3793..7254dd513 100644 --- a/app/Models/Entry.php +++ b/app/Models/Entry.php @@ -860,7 +860,7 @@ HTML; } $conditions = $feed->attributeArray('path_entries_conditions') ?? []; - $conditions = array_filter(array_map(fn($v) => is_string($v) ? trim($v) : '', $conditions)); + $conditions = array_filter($conditions, fn($v): bool => (is_string($v) ? trim($v) : '') !== ''); if (count($conditions) > 0) { $found = false; foreach ($conditions as $condition) { -- cgit v1.2.3