Merge pull request #9098 from kenjis/phpdoc-BaseModel

docs: fix `@return` type in BaseModel
This commit is contained in:
kenjis 2024-08-03 08:18:24 +09:00 committed by GitHub
commit 6617533aa7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 8 deletions

View File

@ -103,12 +103,6 @@ $ignoreErrors[] = [
'count' => 1,
'path' => __DIR__ . '/system/BaseModel.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method CodeIgniter\\\\BaseModel\\:\\:doErrors\\(\\) return type has no value type specified in iterable type array\\.$#',
'count' => 1,
'path' => __DIR__ . '/system/BaseModel.php',
];
$ignoreErrors[] = [
// identifier: missingType.iterableValue
'message' => '#^Method CodeIgniter\\\\BaseModel\\:\\:doFind\\(\\) has parameter \\$id with no value type specified in iterable type array\\.$#',

View File

@ -541,7 +541,7 @@ abstract class BaseModel
* Grabs the last error(s) that occurred from the Database connection.
* This method works only with dbCalls.
*
* @return array|null
* @return array<string, string>
*/
abstract protected function doErrors();
@ -1242,7 +1242,7 @@ abstract class BaseModel
*
* @param bool $forceDB Always grab the db error, not validation
*
* @return array<string,string>
* @return array<string, string>
*/
public function errors(bool $forceDB = false)
{