Skip to content

Commit

Permalink
refactor: Fix phpstan return.missing (#9382)
Browse files Browse the repository at this point in the history
  • Loading branch information
neznaika0 authored Jan 8, 2025
1 parent 9de9856 commit 42a00ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions system/Test/Mock/MockResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public function dataSeek($n = 0)
*/
protected function fetchAssoc()
{
return [];
}

/**
Expand Down
7 changes: 1 addition & 6 deletions utils/phpstan-baseline/return.missing.neon
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
# total 2 errors
# total 1 error

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

0 comments on commit 42a00ff

Please sign in to comment.