diff -u b/core/includes/bootstrap.inc b/core/includes/bootstrap.inc --- b/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -1753,7 +1753,7 @@ /** * Generates a default anonymous $user object. * - * @return Drupal\user\Plugin\Core\Entity\User + * @return object * The user object. */ function drupal_anonymous_user() { diff -u b/core/modules/user/user.module b/core/modules/user/user.module --- b/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -7,6 +7,7 @@ use Drupal\entity\Plugin\Core\Entity\EntityDisplay; use Drupal\file\Plugin\Core\Entity\File; use Drupal\user\Plugin\Core\Entity\User; +use Drupal\user\UserInterface; use Drupal\user\UserRole; use Drupal\Core\Template\Attribute; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; @@ -610,7 +611,7 @@ /** * Implements hook_user_view(). */ -function user_user_view(EntityInterface $account, EntityDisplay $display) { +function user_user_view(UserInterface $account, EntityDisplay $display) { if ($display->getComponent('member_for')) { $account->content['member_for'] = array( '#type' => 'item',