Skip to content

Commit 58fce8b

Browse files
committed
docs: fix PHPDoc types
1 parent 512ba40 commit 58fce8b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

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
{
@@ -715,7 +716,7 @@ protected function shouldUpdate($data): bool
715716
* @phpstan-param row_array|object|null $data
716717
* @param bool $returnID Whether insert ID should be returned or not.
717718
*
718-
* @return false|int|object|string
719+
* @return bool|int|string
719720
* @phpstan-return ($returnID is true ? int|string|false : bool)
720721
*
721722
* @throws ReflectionException

0 commit comments

Comments
 (0)