Skip to content

Commit 6b77de2

Browse files
committed
docs: add PHPDoc types
1 parent c43037f commit 6b77de2

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

system/BaseModel.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,9 @@ abstract protected function doOnlyDeleted();
478478
* Compiles a replace and runs the query.
479479
* This method works only with dbCalls.
480480
*
481-
* @param array|null $data Data
482-
* @param bool $returnSQL Set to true to return Query String
481+
* @param array|null $data Data
482+
* @phpstan-param row_array|null $data
483+
* @param bool $returnSQL Set to true to return Query String
483484
*
484485
* @return BaseResult|false|Query|string
485486
*/
@@ -1151,8 +1152,9 @@ public function onlyDeleted()
11511152
/**
11521153
* Compiles a replace and runs the query.
11531154
*
1154-
* @param array|null $data Data
1155-
* @param bool $returnSQL Set to true to return Query String
1155+
* @param array|null $data Data
1156+
* @phpstan-param row_array|null $data
1157+
* @param bool $returnSQL Set to true to return Query String
11561158
*
11571159
* @return BaseResult|false|Query|string
11581160
*/

system/Model.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,8 +481,9 @@ protected function doOnlyDeleted()
481481
* Compiles a replace into string and runs the query
482482
* This method works only with dbCalls.
483483
*
484-
* @param array|null $data Data
485-
* @param bool $returnSQL Set to true to return Query String
484+
* @param array|null $data Data
485+
* @phpstan-param row_array|null $data
486+
* @param bool $returnSQL Set to true to return Query String
486487
*
487488
* @return BaseResult|false|Query|string
488489
*/

0 commit comments

Comments
 (0)