From 90f4b98424be1450f6b0a36c77e1e2933525de99 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Wed, 19 Nov 2025 10:53:03 +0100 Subject: [PATCH] refactor(IResult): Un-deprecate fetch and fetchAll But still add a note that the new methods are preferred. Signed-off-by: Carl Schwan --- lib/public/DB/IResult.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/public/DB/IResult.php b/lib/public/DB/IResult.php index c9c401bde88..c3c4b374470 100644 --- a/lib/public/DB/IResult.php +++ b/lib/public/DB/IResult.php @@ -44,7 +44,7 @@ interface IResult { * @return mixed * * @since 21.0.0 - * @deprecated Since 33.0.0, use fetchAssociative/fetchNumeric/fetchOne or iterateAssociate/iterateNumeric instead. + * @note Since 33.0.0, prefer using fetchAssociative/fetchNumeric/fetchOne or iterateAssociate/iterateNumeric instead. */ public function fetch(int $fetchMode = PDO::FETCH_ASSOC); @@ -81,7 +81,7 @@ interface IResult { * @return mixed[] * * @since 21.0.0 - * @deprecated Since 33.0.0, use fetchAllAssociative/fetchAllNumeric/fetchFirstColumn or iterateAssociate/iterateNumeric instead. + * @note Since 33.0.0, prefer using fetchAllAssociative/fetchAllNumeric/fetchFirstColumn or iterateAssociate/iterateNumeric instead. */ public function fetchAll(int $fetchMode = PDO::FETCH_ASSOC): array; @@ -125,7 +125,7 @@ interface IResult { public function rowCount(): int; /** - * Returns the result as an iterator over rows represented as numeric arrays. + * Returns an iterator over rows represented as numeric arrays. * * @return Traversable> * @@ -134,7 +134,7 @@ interface IResult { public function iterateNumeric(): Traversable; /** - * Returns the result as an iterator over rows represented as associative arrays. + * Returns an iterator over rows represented as associative arrays. * * @return Traversable> *