@@ -252,14 +252,16 @@ public function getResultObject(): array
252252 * Wrapper object to return a row as either an array, an object, or
253253 * a custom class.
254254 *
255- * If row doesn't exist, returns null.
255+ * If the row doesn't exist, returns null.
256+ *
257+ * @template T of object
256258 *
257- * @param int|string $n The index of the results to return, or column name.
258- * @param string $type The type of result object. 'array', 'object' or class name.
259- * @phpstan-param class-string|'array'|'object' $type
259+ * @param int|string $n The index of the results to return, or column name.
260+ * @param string $type The type of result object. 'array', 'object' or class name.
261+ * @phpstan-param class-string<T> |'array'|'object' $type
260262 *
261263 * @return array|object|stdClass|null
262- * @phpstan-return ($type is 'object' ? stdClass|null : ($type is 'array' ? array|null : object |null))
264+ * @phpstan-return ($type is 'object' ? stdClass|null : ($type is 'array' ? array|null : T |null))
263265 */
264266 public function getRow ($ n = 0 , string $ type = 'object ' )
265267 {
@@ -296,7 +298,7 @@ public function getRow($n = 0, string $type = 'object')
296298 *
297299 * @template T of object
298300 *
299- * @param int $n The row number of the results
301+ * @param int $n The index of the results to return.
300302 * @phpstan-param class-string<T> $className
301303 *
302304 * @return object|null
0 commit comments