diff --git a/src/DatabaseDriver.php b/src/DatabaseDriver.php index 81885d02..ede11043 100644 --- a/src/DatabaseDriver.php +++ b/src/DatabaseDriver.php @@ -1228,6 +1228,7 @@ public function loadColumn($offset = 0) * Method to get the first row of the result set from the database query as an object. * * @param string $class The class name to use for the returned row object. + * The $class parameter is deprecated in 4.x and will be removed in 6.0 without a replacement. * * @return mixed The return value or null if the query failed. * @@ -1275,6 +1276,7 @@ public function loadObject($class = \stdClass::class) * * @param string $key The name of a field on which to key the result array. * @param string $class The class name to use for the returned row objects. + * The $class parameter is deprecated in 4.x and will be removed in 6.0 without a replacement. * * @return mixed The return value or null if the query failed. * diff --git a/src/DatabaseIterator.php b/src/DatabaseIterator.php index 447c3bb9..4294432b 100644 --- a/src/DatabaseIterator.php +++ b/src/DatabaseIterator.php @@ -70,9 +70,11 @@ class DatabaseIterator implements \Countable, \Iterator * @param StatementInterface $statement The statement holding the result set to iterate. * @param string $column An option column to use as the iterator key. * @param string $class The class of object that is returned. + * The $class parameter is deprecated in 4.x and will be removed in 6.0 + * without a replacement. * - * @since 1.0 * @throws \InvalidArgumentException + * @since 1.0 */ public function __construct(StatementInterface $statement, $column = null, $class = \stdClass::class) {