From e4100ac2fa917ce434647d6a686292ae14b73c2e Mon Sep 17 00:00:00 2001 From: Jakub Zalas Date: Fri, 13 Sep 2013 12:48:12 +0100 Subject: [PATCH] [FrameworkBundle][Security] Replaced void return type with null for consistency --- .../Bundle/FrameworkBundle/Templating/GlobalVariables.php | 5 ++++- src/Symfony/Component/Security/Core/User/UserInterface.php | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php b/src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php index af3b34ac9b..c223ab9022 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php @@ -26,6 +26,9 @@ class GlobalVariables { protected $container; + /** + * @param ContainerInterface $container The DI container + */ public function __construct(ContainerInterface $container) { $this->container = $container; @@ -46,7 +49,7 @@ class GlobalVariables /** * Returns the current user. * - * @return mixed|void + * @return mixed * * @see TokenInterface::getUser() */ diff --git a/src/Symfony/Component/Security/Core/User/UserInterface.php b/src/Symfony/Component/Security/Core/User/UserInterface.php index f5bbde2fc6..6e9b0f1899 100644 --- a/src/Symfony/Component/Security/Core/User/UserInterface.php +++ b/src/Symfony/Component/Security/Core/User/UserInterface.php @@ -80,8 +80,6 @@ interface UserInterface * * This is important if, at any given point, sensitive information like * the plain-text password is stored on this object. - * - * @return void */ public function eraseCredentials(); }