Skip to content

Commit 90f4b98

Browse files
committed
refactor(IResult): Un-deprecate fetch and fetchAll
But still add a note that the new methods are preferred. Signed-off-by: Carl Schwan <[email protected]>
1 parent 2b61abd commit 90f4b98

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/public/DB/IResult.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function closeCursor(): bool;
4444
* @return mixed
4545
*
4646
* @since 21.0.0
47-
* @deprecated Since 33.0.0, use fetchAssociative/fetchNumeric/fetchOne or iterateAssociate/iterateNumeric instead.
47+
* @note Since 33.0.0, prefer using fetchAssociative/fetchNumeric/fetchOne or iterateAssociate/iterateNumeric instead.
4848
*/
4949
public function fetch(int $fetchMode = PDO::FETCH_ASSOC);
5050

@@ -81,7 +81,7 @@ public function fetchOne();
8181
* @return mixed[]
8282
*
8383
* @since 21.0.0
84-
* @deprecated Since 33.0.0, use fetchAllAssociative/fetchAllNumeric/fetchFirstColumn or iterateAssociate/iterateNumeric instead.
84+
* @note Since 33.0.0, prefer using fetchAllAssociative/fetchAllNumeric/fetchFirstColumn or iterateAssociate/iterateNumeric instead.
8585
*/
8686
public function fetchAll(int $fetchMode = PDO::FETCH_ASSOC): array;
8787

@@ -125,7 +125,7 @@ public function fetchColumn();
125125
public function rowCount(): int;
126126

127127
/**
128-
* Returns the result as an iterator over rows represented as numeric arrays.
128+
* Returns an iterator over rows represented as numeric arrays.
129129
*
130130
* @return Traversable<list<mixed>>
131131
*
@@ -134,7 +134,7 @@ public function rowCount(): int;
134134
public function iterateNumeric(): Traversable;
135135

136136
/**
137-
* Returns the result as an iterator over rows represented as associative arrays.
137+
* Returns an iterator over rows represented as associative arrays.
138138
*
139139
* @return Traversable<array<string,mixed>>
140140
*

0 commit comments

Comments
 (0)