Skip to content

Commit 372435d

Browse files
committed
docs: fix @return type
1 parent f7c5b7e commit 372435d

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

system/Database/BaseResult.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,8 @@ abstract public function getFieldData(): array;
497497

498498
/**
499499
* Frees the current result.
500+
*
501+
* @return void
500502
*/
501503
abstract public function freeResult();
502504

@@ -523,7 +525,7 @@ abstract protected function fetchAssoc();
523525
*
524526
* Overridden by child classes.
525527
*
526-
* @return object
528+
* @return Entity|false|object|stdClass
527529
*/
528530
abstract protected function fetchObject(string $className = 'stdClass');
529531
}

system/Database/MySQLi/Result.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ public function getFieldData(): array
103103

104104
/**
105105
* Frees the current result.
106+
*
107+
* @return void
106108
*/
107109
public function freeResult()
108110
{

system/Database/Postgre/Result.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public function getFieldData(): array
6969

7070
/**
7171
* Frees the current result.
72+
*
73+
* @return void
7274
*/
7375
public function freeResult()
7476
{

system/Database/SQLSRV/Result.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ public function getFieldData(): array
103103

104104
/**
105105
* Frees the current result.
106+
*
107+
* @return void
106108
*/
107109
public function freeResult()
108110
{

system/Database/SQLite3/Result.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ public function getFieldData(): array
8080

8181
/**
8282
* Frees the current result.
83+
*
84+
* @return void
8385
*/
8486
public function freeResult()
8587
{

system/Test/Mock/MockResult.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function getFieldData(): array
4646
/**
4747
* Frees the current result.
4848
*
49-
* @return mixed
49+
* @return void
5050
*/
5151
public function freeResult()
5252
{
@@ -59,7 +59,7 @@ public function freeResult()
5959
*
6060
* @param int $n
6161
*
62-
* @return mixed
62+
* @return bool
6363
*/
6464
public function dataSeek($n = 0)
6565
{

0 commit comments

Comments
 (0)