From b3121709d62d9fadf890e523b9c9dba7cf702d25 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 14 Apr 2023 14:23:45 +0200 Subject: PHPStan Level 6 FreshRSS_Search FreshRSS_Entry (#5292) * PHPStan Level 6 FreshRSS_Search FreshRSS_Entry * Minor fix * Type fix * Apply suggestions from code review Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> * Minor types syntax Compatibility Intelephense --------- Co-authored-by: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> --- app/Models/BooleanSearch.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app/Models/BooleanSearch.php') diff --git a/app/Models/BooleanSearch.php b/app/Models/BooleanSearch.php index f2e16f972..89e6e3ee2 100644 --- a/app/Models/BooleanSearch.php +++ b/app/Models/BooleanSearch.php @@ -10,7 +10,10 @@ class FreshRSS_BooleanSearch { /** @var array */ private $searches = array(); - /** @var 'AND'|'OR'|'AND NOT' */ + /** + * @phpstan-var 'AND'|'OR'|'AND NOT' + * @var string + */ private $operator; /** @param 'AND'|'OR'|'AND NOT' $operator */ @@ -255,7 +258,7 @@ class FreshRSS_BooleanSearch { * or a series of FreshRSS_Search combined by explicit OR * @return array */ - public function searches() { + public function searches(): array { return $this->searches; } -- cgit v1.2.3