Skip to content

Commit 5e9f2af

Browse files
authored
Merge pull request #3031 from stof/fix_static_analysis
Fix the code to avoid static analysis false positives in projects
2 parents 0407070 + 0eb35c3 commit 5e9f2af

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Event/GetResponseNullableUserEvent.php

+8
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,12 @@ public function __construct(UserInterface $user = null, Request $request)
2929
$this->user = $user;
3030
$this->request = $request;
3131
}
32+
33+
/**
34+
* @return UserInterface|null
35+
*/
36+
public function getUser()
37+
{
38+
return $this->user;
39+
}
3240
}

Model/UserInterface.php

-2
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,6 @@ public function isEnabled();
276276
/**
277277
* @author Thibault Duplessis <[email protected]>
278278
* @author Johannes M. Schmitt <[email protected]>
279-
*
280-
* @deprecated since Symfony 4.1. Remove in Nov 2023 (End of support for security fixes SF 4.4)
281279
*/
282280
interface UserInterface extends FosUserInterface, \Symfony\Component\Security\Core\User\AdvancedUserInterface
283281
{

0 commit comments

Comments
 (0)