@@ -436,7 +436,7 @@ abstract protected function doFindColumn(string $columnName);
436436 * @param int|null $limit Limit
437437 * @param int $offset Offset
438438 *
439- * @return array
439+ * @return array<int,array<int|string,bool|float|int|object|string|null>|object>
440440 */
441441 abstract protected function doFindAll (?int $ limit = null , int $ offset = 0 );
442442
@@ -629,7 +629,7 @@ public function find($id = null)
629629 *
630630 * @param string $columnName Column Name
631631 *
632- * @return array|null The resulting row of data, or null if no data found.
632+ * @return array<int,mixed> |null The resulting row of data, or null if no data found.
633633 *
634634 * @throws DataException
635635 */
@@ -650,7 +650,7 @@ public function findColumn(string $columnName)
650650 * @param int $limit Limit
651651 * @param int $offset Offset
652652 *
653- * @return array
653+ * @return array<mixed>
654654 */
655655 public function findAll (?int $ limit = null , int $ offset = 0 )
656656 {
@@ -695,7 +695,7 @@ public function findAll(?int $limit = null, int $offset = 0)
695695 /**
696696 * Returns the first row of the result set.
697697 *
698- * @return array|object|null
698+ * @return array<string,mixed> |object|null
699699 */
700700 public function first ()
701701 {
@@ -1593,9 +1593,10 @@ public function getValidationMessages(): array
15931593 * currently so that rules don't block updating when only updating
15941594 * a partial row.
15951595 *
1596- * @param array $rules Array containing field name and rule
1597- * @param array $row Row data (@TODO Remove null in param type)
1596+ * @param array<string,string> $rules
1597+ * @param array<string,mixed>|null $row
15981598 * @phpstan-param row_array $row
1599+ * @phpstan-return array<string,string>
15991600 */
16001601 protected function cleanValidationRules (array $ rules , ?array $ row = null ): array
16011602 {
@@ -1889,7 +1890,7 @@ protected function transformDataToArray($row, string $type): array
18891890 *
18901891 * @param string $name Name
18911892 *
1892- * @return array|bool|float|int|object|string|null
1893+ * @return array<mixed> |bool|float|int|object|string|null
18931894 */
18941895 public function __get (string $ name )
18951896 {
0 commit comments