From 2882f44179cc03f4c193d5b7528e9c7a884ff131 Mon Sep 17 00:00:00 2001 From: Luc SANCHEZ <4697568+ColonelMoutarde@users.noreply.github.com> Date: Sat, 8 Apr 2023 10:44:40 +0200 Subject: Fix phpstan level 6 error (#5272) * Fix phpstan level 6 error * Better typing --------- Co-authored-by: Luc Co-authored-by: Alexandre Alapetite --- app/Models/EntryDAO.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'app/Models/EntryDAO.php') diff --git a/app/Models/EntryDAO.php b/app/Models/EntryDAO.php index cf5550573..739e10247 100644 --- a/app/Models/EntryDAO.php +++ b/app/Models/EntryDAO.php @@ -1072,6 +1072,7 @@ SQL; } /** + * @phpstan-param 'a'|'A'|'s'|'S'|'c'|'f'|'t'|'T'|'ST' $type * @param int $id category/feed/tag ID * @return array{0:array,1:string} */ @@ -1135,6 +1136,7 @@ SQL; } /** + * @phpstan-param 'a'|'A'|'s'|'S'|'c'|'f'|'t'|'T'|'ST' $type * @param int $id category/feed/tag ID * @return PDOStatement|false */ @@ -1214,6 +1216,7 @@ SQL; } /** + * @phpstan-param 'a'|'A'|'s'|'S'|'c'|'f'|'t'|'T'|'ST' $type * @param int $id category/feed/tag ID * @return array|false */ -- cgit v1.2.3