Skip to content

Commit 894f28a

Browse files
committed
deprecated class attribute
1 parent 2e744e7 commit 894f28a

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/DatabaseDriver.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,7 @@ public function loadColumn($offset = 0)
12281228
* Method to get the first row of the result set from the database query as an object.
12291229
*
12301230
* @param string $class The class name to use for the returned row object.
1231+
* The $class parameter is deprecated in 4.x and will be removed in 6.0 without a replacement.
12311232
*
12321233
* @return mixed The return value or null if the query failed.
12331234
*
@@ -1275,6 +1276,7 @@ public function loadObject($class = \stdClass::class)
12751276
*
12761277
* @param string $key The name of a field on which to key the result array.
12771278
* @param string $class The class name to use for the returned row objects.
1279+
* The $class parameter is deprecated in 4.x and will be removed in 6.0 without a replacement.
12781280
*
12791281
* @return mixed The return value or null if the query failed.
12801282
*

src/DatabaseIterator.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,11 @@ class DatabaseIterator implements \Countable, \Iterator
7070
* @param StatementInterface $statement The statement holding the result set to iterate.
7171
* @param string $column An option column to use as the iterator key.
7272
* @param string $class The class of object that is returned.
73+
* The $class parameter is deprecated in 4.x and will be removed in 6.0
74+
* without a replacement.
7375
*
74-
* @since 1.0
7576
* @throws \InvalidArgumentException
77+
*@since 1.0
7678
*/
7779
public function __construct(StatementInterface $statement, $column = null, $class = \stdClass::class)
7880
{

0 commit comments

Comments
 (0)