diff --git a/system/Test/Mock/MockResult.php b/system/Test/Mock/MockResult.php index f3ca02651bfc..9c5f55e98fdc 100644 --- a/system/Test/Mock/MockResult.php +++ b/system/Test/Mock/MockResult.php @@ -77,6 +77,7 @@ public function dataSeek($n = 0) */ protected function fetchAssoc() { + return []; } /** diff --git a/utils/phpstan-baseline/loader.neon b/utils/phpstan-baseline/loader.neon index a80c14474bf8..9759968e53f5 100644 --- a/utils/phpstan-baseline/loader.neon +++ b/utils/phpstan-baseline/loader.neon @@ -43,7 +43,6 @@ includes: - property.readOnlyByPhpDocAssignOutOfClass.neon - property.readOnlyByPhpDocDefaultValue.neon - property.unusedType.neon - - return.missing.neon - return.type.neon - return.unusedType.neon - staticMethod.notFound.neon diff --git a/utils/phpstan-baseline/return.missing.neon b/utils/phpstan-baseline/return.missing.neon deleted file mode 100644 index 151fdaa34156..000000000000 --- a/utils/phpstan-baseline/return.missing.neon +++ /dev/null @@ -1,13 +0,0 @@ -# total 2 errors - -parameters: - ignoreErrors: - - - message: '#^Method CodeIgniter\\Images\\Handlers\\BaseHandler\:\:__call\(\) should return mixed but return statement is missing\.$#' - count: 1 - path: ../../system/Images/Handlers/BaseHandler.php - - - - message: '#^Method CodeIgniter\\Test\\Mock\\MockResult\:\:fetchAssoc\(\) should return mixed but return statement is missing\.$#' - count: 1 - path: ../../system/Test/Mock/MockResult.php