diff --git a/core/lib/Drupal/Core/Session/AccountInterface.php b/core/lib/Drupal/Core/Session/AccountInterface.php index 1cf82dcb63caa195bf04ceb96603cf94be68a821..ba3ed9378cef417d7e9641bd33802a73a6d65eaa 100644 --- a/core/lib/Drupal/Core/Session/AccountInterface.php +++ b/core/lib/Drupal/Core/Session/AccountInterface.php @@ -148,8 +148,9 @@ public function getDisplayName(); /** * Returns the email address of this account. * - * @return string - * The email address. + * @return string|null + * The email address, or NULL if the account is anonymous or the user does + * not have an email address. */ public function getEmail();