diff --git a/src/Reader.php b/src/Reader.php index 362996ea..b7eeba82 100644 --- a/src/Reader.php +++ b/src/Reader.php @@ -410,12 +410,15 @@ protected function prepareHeader($header = []): array } /** - * @param class-string $className + * @template T of object + * @param class-string $className * @param array $header * * @throws Exception * @throws MappingFailed * @throws TypeCastingFailed + * + * @return iterator */ public function getRecordsAsObject(string $className, array $header = []): Iterator { diff --git a/src/ResultSet.php b/src/ResultSet.php index f2a52597..e9ad1e7a 100644 --- a/src/ResultSet.php +++ b/src/ResultSet.php @@ -215,12 +215,14 @@ public function getRecords(array $header = []): Iterator } /** - * @param class-string $className + * @template T of object + * @param class-string $className * @param array $header * * @throws Exception * @throws MappingFailed * @throws TypeCastingFailed + * @return iterator */ public function getRecordsAsObject(string $className, array $header = []): Iterator {