Let's say I have a UserController class and I'm importing the App\User class with use. Inside, there is a show() method that receieves an instance of User.
namespace App\Http\Controllers;
use App\User;
class UserController extends Controller
{
/**
* Show user info
*
* @param User $user
* @return Illuminate\Http\JsonResponse
*/
public function show(User $user)
{
// Do something...
}
}
Is it recommended to add the fully qualified name of User in PHPDoc even if I'm importing the class with use?