mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
Update phpstan level to 6
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user