From c2d50245991679d89d8cebfa9c9ce4e50b54e7d9 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 6 Oct 2023 09:44:29 +0200 Subject: [PATCH] fixup! feat(database): Add replacements for deprecated fetch and fetchAll Signed-off-by: Christoph Wurst --- lib/public/DB/IResult.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/public/DB/IResult.php b/lib/public/DB/IResult.php index abf411d4c84b9..369fa8b166855 100644 --- a/lib/public/DB/IResult.php +++ b/lib/public/DB/IResult.php @@ -57,7 +57,7 @@ public function closeCursor(): bool; * @return mixed * * @since 21.0.0 - * @deprecated 28.0.0 use fetchAssociative, fetchNumeric or fetchOne + * @deprecated 28.0.0 use fetchAssociative instead of fetch(), fetchNumeric instead of fetch(\PDO::FETCH_NUM) and fetchOne instead of fetch(\PDO::FETCH_COLUMN) */ public function fetch(int $fetchMode = PDO::FETCH_ASSOC); @@ -87,7 +87,7 @@ public function fetchAllAssociative(): array; * @return mixed[] * * @since 21.0.0 - * @deprecated 28.0.0 use fetchAllAssociative, fetchAllNumeric or fetchOne + * @deprecated 28.0.0 use fetchAllAssociative instead of fetchAll(), fetchAllNumeric instead of fetchAll(FETCH_NUM) and fetchOne instead of fetchAll(FETCH_COLUMN) */ public function fetchAll(int $fetchMode = PDO::FETCH_ASSOC): array;