File tree Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Expand file tree Collapse file tree 2 files changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,7 @@ public function getUser(): ?object
78
78
return null ;
79
79
}
80
80
81
- $ user = $ token ->getUser ();
82
-
83
- // @deprecated since 5.4, $user will always be a UserInterface instance
84
- return \is_object ($ user ) ? $ user : null ;
81
+ return $ token ->getUser ();
85
82
}
86
83
87
84
/**
Original file line number Diff line number Diff line change @@ -95,13 +95,6 @@ public function testGetUser()
95
95
$ this ->assertEquals ($ user , $ this ->appVariable ->getUser ());
96
96
}
97
97
98
- public function testGetUserWithUsernameAsTokenUser ()
99
- {
100
- $ this ->setTokenStorage ($ user = 'username ' );
101
-
102
- $ this ->assertNull ($ this ->appVariable ->getUser ());
103
- }
104
-
105
98
public function testGetTokenWithNoToken ()
106
99
{
107
100
$ tokenStorage = $ this ->createMock (TokenStorageInterface::class);
You can’t perform that action at this time.
0 commit comments