From ae63cb4fb2f31233297d08de5dfe74c28e2bcfbf Mon Sep 17 00:00:00 2001 From: kenjis Date: Fri, 2 Aug 2024 09:58:44 +0900 Subject: [PATCH] docs: fix @return type --- phpstan-baseline.php | 6 ------ system/BaseModel.php | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) 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) {