Skip to content

Commit 10e9cf7

Browse files
minor #34723 [FrameworkBundle] Use UserInterface to @return in getUser method (Arman-Hosseini)
This PR was squashed before being merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Use UserInterface to @return in getUser method | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | License | MIT <!-- Replace this notice by a short README for your feature/bugfix. This will help people understand your PR and can be used as a start for the documentation. Additionally (see https://symfony.com/roadmap): - Always add tests and ensure they pass. - Never break backward compatibility (see https://symfony.com/bc). - Bug fixes must be submitted against the lowest maintained branch where they apply (lowest branches are regularly merged to upper ones so they get the fixes too.) - Features and deprecations must be submitted against branch master. --> Commits ------- 9f1ebd7fb9 [FrameworkBundle] Use UserInterface to @return in getUser method
2 parents bb09062 + 5b6dc60 commit 10e9cf7

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)