From f3af3f0f3d4da8023c5e918545d47a51afc4b6c1 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Sun, 26 Mar 2023 23:19:41 +0200 Subject: Automated test towards PHPStan level 6 (#5230) * Automated test towards PHPStan level 6 Contributes to https://github.com/FreshRSS/FreshRSS/issues/4112 With this automated tests, files that are passing Level 6 are tested to avoid regressions towards Level 5 (which is the current baseline for the whole code-base) It is included when calling `make test-all` or can be called specifically by `composer run-script phpstan-next` * Test and example with 3 new passing files --- app/views/helpers/export/opml.phtml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/views/helpers') diff --git a/app/views/helpers/export/opml.phtml b/app/views/helpers/export/opml.phtml index 64c83c960..64dc18eba 100644 --- a/app/views/helpers/export/opml.phtml +++ b/app/views/helpers/export/opml.phtml @@ -2,8 +2,9 @@ /** * @param array $feeds + * @return array> */ -function feedsToOutlines($feeds, $excludeMutedFeeds = false): array { +function feedsToOutlines($feeds, bool $excludeMutedFeeds = false): array { $outlines = []; foreach ($feeds as $feed) { if ($feed->mute() && $excludeMutedFeeds) { -- cgit v1.2.3