Skip to content

Commit

Permalink
minor #34723 [FrameworkBundle] Use UserInterface to @return in getUse…
Browse files Browse the repository at this point in the history
…r 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
-------

9f1ebd7 [FrameworkBundle] Use UserInterface to @return in getUser method
  • Loading branch information
nicolas-grekas committed Dec 10, 2019
2 parents 2eacbc5 + 9f1ebd7 commit cd43346
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -26,6 +26,7 @@
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Security\Csrf\CsrfToken;

/**
Expand Down Expand Up @@ -431,7 +432,7 @@ protected function getDoctrine()
/**
* Get a user from the Security Token Storage.
*
* @return object|null
* @return UserInterface|object|null
*
* @throws \LogicException If SecurityBundle is not available
*
Expand Down

0 comments on commit cd43346

Please sign in to comment.