Skip to content

Commit df8f305

Browse files
committed
docs: fix PHPDoc types in Result
1 parent f5043f5 commit df8f305

6 files changed

Lines changed: 7 additions & 6 deletions

File tree

system/Database/MySQLi/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ protected function fetchAssoc()
141141
*
142142
* Overridden by child classes.
143143
*
144-
* @return bool|Entity|object
144+
* @return Entity|false|object|stdClass
145145
*/
146146
protected function fetchObject(string $className = 'stdClass')
147147
{

system/Database/OCI8/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected function fetchAssoc()
9292
*
9393
* Overridden by child classes.
9494
*
95-
* @return bool|Entity|object
95+
* @return Entity|false|object|stdClass
9696
*/
9797
protected function fetchObject(string $className = 'stdClass')
9898
{

system/Database/Postgre/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ protected function fetchAssoc()
107107
*
108108
* Overridden by child classes.
109109
*
110-
* @return bool|Entity|object
110+
* @return Entity|false|object|stdClass
111111
*/
112112
protected function fetchObject(string $className = 'stdClass')
113113
{

system/Database/SQLSRV/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ protected function fetchAssoc()
147147
/**
148148
* Returns the result set as an object.
149149
*
150-
* @return bool|Entity|object
150+
* @return Entity|false|object|stdClass
151151
*/
152152
protected function fetchObject(string $className = 'stdClass')
153153
{

system/Database/SQLite3/Result.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ protected function fetchAssoc()
124124
*
125125
* Overridden by child classes.
126126
*
127-
* @return bool|object
127+
* @return Entity|false|object|stdClass
128128
*/
129129
protected function fetchObject(string $className = 'stdClass')
130130
{

system/Test/Mock/MockResult.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace CodeIgniter\Test\Mock;
1313

1414
use CodeIgniter\Database\BaseResult;
15+
use stdClass;
1516

1617
/**
1718
* @extends BaseResult<object|resource, object|resource>
@@ -82,7 +83,7 @@ protected function fetchAssoc()
8283
*
8384
* @param string $className
8485
*
85-
* @return object
86+
* @return object|stdClass
8687
*/
8788
protected function fetchObject($className = 'stdClass')
8889
{

0 commit comments

Comments
 (0)