Skip to content

Commit 5b6dc60

Browse files
Arman-Hosseininicolas-grekas
authored andcommitted
[FrameworkBundle] Use UserInterface to @return in getUser method
1 parent 0d61117 commit 5b6dc60

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Controller/ControllerTrait.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use Symfony\Component\HttpKernel\HttpKernelInterface;
2727
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
2828
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
29+
use Symfony\Component\Security\Core\User\UserInterface;
2930
use Symfony\Component\Security\Csrf\CsrfToken;
3031

3132
/**
@@ -431,7 +432,7 @@ protected function getDoctrine()
431432
/**
432433
* Get a user from the Security Token Storage.
433434
*
434-
* @return object|null
435+
* @return UserInterface|object|null
435436
*
436437
* @throws \LogicException If SecurityBundle is not available
437438
*

0 commit comments

Comments
 (0)