Skip to content

Commit ae63cb4

Browse files
committed
docs: fix @return type
1 parent 82dbd91 commit ae63cb4

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@
103103
'count' => 1,
104104
'path' => __DIR__ . '/system/BaseModel.php',
105105
];
106-
$ignoreErrors[] = [
107-
// identifier: missingType.iterableValue
108-
'message' => '#^Method CodeIgniter\\\\BaseModel\\:\\:doErrors\\(\\) return type has no value type specified in iterable type array\\.$#',
109-
'count' => 1,
110-
'path' => __DIR__ . '/system/BaseModel.php',
111-
];
112106
$ignoreErrors[] = [
113107
// identifier: missingType.iterableValue
114108
'message' => '#^Method CodeIgniter\\\\BaseModel\\:\\:doFind\\(\\) has parameter \\$id with no value type specified in iterable type array\\.$#',

system/BaseModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@ abstract protected function doReplace(?array $row = null, bool $returnSQL = fals
541541
* Grabs the last error(s) that occurred from the Database connection.
542542
* This method works only with dbCalls.
543543
*
544-
* @return array|null
544+
* @return array<string, string>
545545
*/
546546
abstract protected function doErrors();
547547

@@ -1242,7 +1242,7 @@ public function replace(?array $row = null, bool $returnSQL = false)
12421242
*
12431243
* @param bool $forceDB Always grab the db error, not validation
12441244
*
1245-
* @return array<string,string>
1245+
* @return array<string, string>
12461246
*/
12471247
public function errors(bool $forceDB = false)
12481248
{

0 commit comments

Comments
 (0)