allow stdClass

This commit is contained in:
Markus Staab 2021-12-04 08:33:36 +01:00 committed by Ivan Fedorov
parent 8c5d28fc5b
commit a2229536dc
3 changed files with 4 additions and 4 deletions

View File

@ -1690,7 +1690,7 @@ class PDOStatement implements IteratorAggregate
* @param array $constructorArgs [optional] <p>
* Elements of this array are passed to the constructor.
* </p>
* @return T an instance of the required class with property names that
* @return T|stdClass|null an instance of the required class with property names that
* correspond to the column names or <b>FALSE</b> on failure.
*/
#[TentativeType]

View File

@ -457,7 +457,7 @@ function mysql_fetch_assoc($result) {}
* An optional array of parameters to pass to the constructor
* for <i>class_name</i> objects.
* </p>
* @return T|object an object with string properties that correspond to the
* @return T|stdClass an object with string properties that correspond to the
* fetched row, or false if there are no more rows.
* </p>
* <p>

View File

@ -1241,7 +1241,7 @@ class mysqli_result implements IteratorAggregate
* An optional array of parameters to pass to the constructor
* for <i>class_name</i> objects.
* </p>
* @return T|object|null an object representing the fetched row, where each property
* @return T|stdClass|false|null an object representing the fetched row, where each property
* represents the name of the result set's column, null if there
* are no more rows in the result set, or false on failure.
*/
@ -1891,7 +1891,7 @@ function mysqli_fetch_assoc(mysqli_result $result): array|null|false {}
* mysqli_store_result(), mysqli_use_result() or mysqli_stmt_get_result().
* @param class-string<T> $class [optional] The name of the class to instantiate, set the properties of and return. If not specified, a stdClass object is returned.
* @param array $constructor_args [optional] An optional array of parameters to pass to the constructor for class_name objects.
* @return T|null|false an object representing the fetched row,
* @return T|stdClass|null|false an object representing the fetched row,
* where each property represents the name of the result set's column,
* null if there are no more rows in the result set, or false on failure.
*/