8000 [FrameworkBundle][Security] Replaced void return type with null for c… · symfony/symfony@e4100ac · GitHub
[go: up one dir, main page]

Skip to content 8000

Commit e4100ac

Browse files
jakzalfabpot
authored andcommitted
[FrameworkBundle][Security] Replaced void return type with null for consistency
1 parent 7d7b583 commit e4100ac

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Symfony/Bundle/FrameworkBundle/Templating/GlobalVariables.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ class GlobalVariables
2626
{
2727
protected $container;
2828

29+
/**
30+
* @param ContainerInterface $container The DI container
31+
*/
2932
public function __construct(ContainerInterface $container)
3033
{
3134
$this->container = $container;
@@ -46,7 +49,7 @@ public function getSecurity()
4649
/**
4750
* Returns the current user.
4851
*
49-
* @return mixed|void
52+
* @return mixed
5053
*
5154
* @see TokenInterface::getUser()
5255
*/

src/Symfony/Component/Security/Core/User/UserInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ public function getUsername();
8080
*
8181
* This is important if, at any given point, sensitive information like
8282
* the plain-text password is stored on this object.
83-
*
84-
* @return void
8583
*/
8684
public function eraseCredentials();
8785
}

0 commit comments

Comments
 (0)
0