diff core/lib/Drupal/Core/Session/UserSession.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Session/UserSession.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/lib/Drupal/Core/Session/UserSession.php	Thu May 09 15:34:47 2019 +0100
@@ -155,6 +155,7 @@
    * {@inheritdoc}
    */
   public function getUsername() {
+    @trigger_error('\Drupal\Core\Session\AccountInterface::getUsername() is deprecated in Drupal 8.0.0, will be removed before Drupal 9.0.0. Use \Drupal\Core\Session\AccountInterface::getAccountName() or \Drupal\user\UserInterface::getDisplayName() instead. See https://www.drupal.org/node/2572493', E_USER_DEPRECATED);
     return $this->getAccountName();
   }