Skip to content

Commit

Permalink
refactor: returns null on DebugToolbar and HoneyPot
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik authored and paulbalandan committed Dec 21, 2024
1 parent e8178eb commit 88862ad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 14 deletions.
2 changes: 1 addition & 1 deletion system/Filters/DebugToolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ public function after(RequestInterface $request, ResponseInterface $response, $a
{
service('toolbar')->prepare($request, $response);

return $response;
return null;
}
}
2 changes: 1 addition & 1 deletion system/Filters/Honeypot.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ public function after(RequestInterface $request, ResponseInterface $response, $a
{
service('honeypot')->attachHoneypot($response);

return $response;
return null;
}
}
7 changes: 1 addition & 6 deletions utils/phpstan-baseline/missingType.iterableValue.neon
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# total 1673 errors
# total 1672 errors

parameters:
ignoreErrors:
Expand Down Expand Up @@ -4707,11 +4707,6 @@ parameters:
count: 1
path: ../../system/Language/Language.php

-
message: '#^Method CodeIgniter\\Language\\Language\:\:load\(\) return type has no value type specified in iterable type array\.$#'
count: 1
path: ../../system/Language/Language.php

-
message: '#^Method CodeIgniter\\Language\\Language\:\:parseLine\(\) return type has no value type specified in iterable type array\.$#'
count: 1
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,12 +1,7 @@
# 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
Expand Down

0 comments on commit 88862ad

Please sign in to comment.