Commit baf8e01e authored by catch's avatar catch
Browse files

Issue #3104538 by Hardik_Patel_12, Harshal Pradhan, ravi.shankar: Type hint...

Issue #3104538 by Hardik_Patel_12, Harshal Pradhan, ravi.shankar: Type hint "\Drupal\Core\Session\AccountInterface" missing
parent de6caed1
......@@ -1011,7 +1011,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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment