It seems like the GitHub access token used for retrieving details about this repository from
GitHub became invalid. This might prevent certain types of inspections from being run (in
particular,
everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
The method isAdmin() does not exist on Illuminate\Contracts\Auth\Authenticatable. It seems like you code against a sub-type of Illuminate\Contracts\Auth\Authenticatable such as Illuminate\Foundation\Auth\User.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
28
if ($user->/** @scrutinizer ignore-call */ isAdmin()) {
The expression return view('pages.admin.home') returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.
The expression return view('pages.user.home') returns the type Illuminate\View\View which is incompatible with the documented return type Illuminate\Http\Response.