It seems like $authService of type object<Longman\Platfourm...s\Auth\AuthUserService> is incompatible with the declared type object<Illuminate\Contracts\Auth\Guard> of property $authService.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
34
}
35
36
/**
37
* Handle an incoming request.
38
*
39
* @param \Illuminate\Http\Request $request
40
* @param Closure $next
41
* @param $roles
42
* @param $permissions
43
* @param bool $validateAll
44
* @return mixed
45
*/
46
public function handle($request, Closure $next, $roles, $permissions, $validateAll = false)
47
{
48
if ($this->authService->guest() || !$request->user()->ability(
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..