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/return.missing.neon b/utils/phpstan-baseline/return.missing.neon index 151fdaa34156..f0842bd02e6d 100644 --- a/utils/phpstan-baseline/return.missing.neon +++ b/utils/phpstan-baseline/return.missing.neon @@ -1,4 +1,4 @@ -# total 2 errors +# total 1 error parameters: ignoreErrors: @@ -6,8 +6,3 @@ parameters: 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