From 42a00ff9d2befc0483c59bbb4c8f76a7975bed1f Mon Sep 17 00:00:00 2001 From: neznaika0 Date: Thu, 9 Jan 2025 02:55:29 +0300 Subject: [PATCH] refactor: Fix phpstan return.missing (#9382) --- system/Test/Mock/MockResult.php | 1 + utils/phpstan-baseline/return.missing.neon | 7 +------ 2 files changed, 2 insertions(+), 6 deletions(-) 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