PHP code: /** @var User $user */ if (is_null($user = auth()->user())) {
Variable $user in PHPDoc tag @var does not exist. varTag.variableNotFound
Any PHPStan/Larastan experts out there? Currently on level 2 and getting an error about a missing var. I don't really want to add another line to fix nor do I want to ignore this line, is there a better way?
Maybe @jclermont knows?
#laravel #larastan