diff --git a/phpstan-baseline.php b/phpstan-baseline.php index 1b36c4a8f8ee..9333adddfe43 100644 --- a/phpstan-baseline.php +++ b/phpstan-baseline.php @@ -103,12 +103,6 @@ '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\\.$#', diff --git a/system/BaseModel.php b/system/BaseModel.php index 9b8bb70ed482..2b364bdc1917 100644 --- a/system/BaseModel.php +++ b/system/BaseModel.php @@ -541,7 +541,7 @@ abstract protected function doReplace(?array $row = null, bool $returnSQL = fals * Grabs the last error(s) that occurred from the Database connection. * This method works only with dbCalls. * - * @return array|null + * @return array */ abstract protected function doErrors(); @@ -1242,7 +1242,7 @@ public function replace(?array $row = null, bool $returnSQL = false) * * @param bool $forceDB Always grab the db error, not validation * - * @return array + * @return array */ public function errors(bool $forceDB = false) {