From 015cd057f03df9d20d810c79b9f2849b211abb84 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Wed, 29 Jan 2020 09:55:48 +0000 Subject: [PATCH] Issue #3104538 by Hardik_Patel_12, Harshal Pradhan, ravi.shankar: Type hint "\Drupal\Core\Session\AccountInterface" missing --- core/modules/user/user.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/user/user.module b/core/modules/user/user.module index 15cf5951905d..950b3d25ca49 100644 --- a/core/modules/user/user.module +++ b/core/modules/user/user.module @@ -1250,7 +1250,7 @@ function user_role_revoke_permissions($rid, array $permissions = []) { * * @see user_mail_tokens() */ -function _user_mail_notify($op, $account, $langcode = NULL) { +function _user_mail_notify($op, AccountInterface $account, $langcode = NULL) { if (\Drupal::config('user.settings')->get('notify.' . $op)) { $params['account'] = $account; $langcode = $langcode ? $langcode : $account->getPreferredLangcode(); -- GitLab