Skip to content

Commit 72ed58e

Browse files
Add more "object" return types
1 parent 222274f commit 72ed58e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/Authentication/Provider/DaoAuthenticationProviderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,22 +328,22 @@ protected function getProvider($user = null, $userChecker = null, $passwordEncod
328328

329329
class TestUser implements UserInterface
330330
{
331-
public function getRoles()
331+
public function getRoles(): array
332332
{
333333
return [];
334334
}
335335

336-
public function getPassword()
336+
public function getPassword(): ?string
337337
{
338338
return 'secret';
339339
}
340340

341-
public function getSalt()
341+
public function getSalt(): ?string
342342
{
343343
return null;
344344
}
345345

346-
public function getUsername()
346+
public function getUsername(): string
347347
{
348348
return 'jane_doe';
349349
}

0 commit comments

Comments
 (0)