Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9f1ebd7

Browse filesBrowse files
Arman-Hosseininicolas-grekas
authored andcommitted
[FrameworkBundle] Use UserInterface to @return in getUser method
1 parent 9eafff5 commit 9f1ebd7
Copy full SHA for 9f1ebd7

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/FrameworkBundle/Controller/ControllerTrait.php
+2-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.