File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,10 @@ public function __construct(ContainerInterface $container)
34
34
$ this ->container = $ container ;
35
35
}
36
36
37
- public function getUser (): ?UserInterface
37
+ /**
38
+ * @return UserInterface|null
39
+ */
40
+ public function getUser ()
38
41
{
39
42
if (!$ token = $ this ->getToken ()) {
40
43
return null ;
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ public function testGetEncoderForEncoderAwareWithClassName()
135
135
136
136
class SomeUser implements UserInterface
137
137
{
138
- public function getRoles ()
138
+ public function getRoles (): array
139
139
{
140
140
}
141
141
@@ -164,7 +164,7 @@ class EncAwareUser extends SomeUser implements EncoderAwareInterface
164
164
{
165
165
public $ encoderName = 'encoder_name ' ;
166
166
167
- public function getEncoderName (): string
167
+ public function getEncoderName (): ? string
168
168
{
169
169
return $ this ->encoderName ;
170
170
}
You can’t perform that action at this time.
0 commit comments