It seems like $auth of type object<Illuminate\Auth\AuthManager> is incompatible with the declared type object<App\Containers\User\Tasks\Auth> of property $auth.
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...
30
}
31
32
/**
33
* get the user object of the current authenticated user.
34
* If token was passed as param then inject it in the returned user object.
35
*
36
* @param null $token
37
*
38
* @return mixed
39
*/
40
public function run($token = null)
41
{
42
if (!$user = $this->auth->user()) {
43
throw new AuthenticationFailedException('User is not logged in.');
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..