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

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents c75dbcec494b
children
line wrap: on
line diff
--- a/core/lib/Drupal/Core/Session/AccountProxy.php	Thu Feb 28 13:11:55 2019 +0000
+++ b/core/lib/Drupal/Core/Session/AccountProxy.php	Thu May 09 15:34:47 2019 +0100
@@ -34,7 +34,8 @@
    *
    * @var int
    *
-   * @deprecated Scheduled for removal in Drupal 8.4.x. Use $this->id instead.
+   * @deprecated in Drupal 8.3.0 and will be removed before Drupal 9.0.0. Use
+   *   $this->id instead.
    */
   protected $initialAccountId;
 
@@ -124,6 +125,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();
   }