mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge pull request #9098 from kenjis/phpdoc-BaseModel
docs: fix `@return` type in BaseModel
This commit is contained in:
commit
6617533aa7
@ -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\\.$#',
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user