Skip to content

Commit 903d6aa

Browse files
committed
docs: fix PHPDoc types
1 parent 00cc81e commit 903d6aa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

system/BaseModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ public function asObject(string $class = 'object')
16631663
* @param bool $onlyChanged Only Changed Property
16641664
* @param bool $recursive If true, inner entities will be cast as array as well
16651665
*
1666-
* @return array Array
1666+
* @return array<string, mixed>
16671667
*
16681668
* @throws ReflectionException
16691669
*/

system/Model.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ protected function doFind(bool $singleton, $id = null)
212212
* @param string $columnName Column Name
213213
*
214214
* @return array|null The resulting row of data, or null if no data found.
215+
* @phpstan-return list<row_array>|null
215216
*/
216217
protected function doFindColumn(string $columnName)
217218
{
@@ -700,7 +701,7 @@ protected function shouldUpdate($data): bool
700701
* @phpstan-param row_array|object|null $data
701702
* @param bool $returnID Whether insert ID should be returned or not.
702703
*
703-
* @return false|int|object|string
704+
* @return bool|int|string
704705
* @phpstan-return ($returnID is true ? int|string|false : bool)
705706
*
706707
* @throws ReflectionException

0 commit comments

Comments
 (0)