Update phpstan level to 6

This commit is contained in:
DariusIII
2026-02-11 14:02:26 +01:00
parent eed6250518
commit f4c444c9b0
291 changed files with 3684 additions and 1089 deletions
+3 -3
View File
@@ -31,7 +31,7 @@ class SearchController extends BasePageController
/**
* @throws \Exception
*/
public function search(Request $request)
public function search(Request $request): mixed
{
$results = [];
@@ -94,7 +94,7 @@ class SearchController extends BasePageController
-1,
$this->userdata->categoryexclusions ?? [],
'basic',
$categoryID);
$categoryID); // @phpstan-ignore argument.type
$results = $this->paginate($rslt ?? [], $rslt[0]->_totalrows ?? 0, config('nntmux.items_per_page'), $page, $request->url(), $request->query());
$category = $categoryID;
@@ -199,7 +199,7 @@ class SearchController extends BasePageController
-1,
$this->userdata->categoryexclusions ?? [],
'advanced',
[$searchVars['searchadvcat'] === '' ? -1 : $searchVars['searchadvcat']]
[$searchVars['searchadvcat'] === '' ? -1 : $searchVars['searchadvcat']] // @phpstan-ignore argument.type
);
$results = $this->paginate($rslt ?? [], $rslt[0]->_totalrows ?? 0, config('nntmux.items_per_page'), $page, $request->url(), $request->query());