It seems like $this->auth->guard()->user() can also be of type null; however, parameter $user of Zing\LaravelSentry\Middl...t::resolveUserContext() does only seem to accept Illuminate\Contracts\Auth\Authenticatable, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
Accessing email on the interface Illuminate\Contracts\Auth\Authenticatable suggest that you code against a concrete implementation. How about adding an instanceof check?