Skip to content

Commit 2438133

Browse files
wouterjnicolas-grekas
authored andcommitted
Add missing PHPdoc return types
1 parent 56eb713 commit 2438133

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Authorization/Voter/RoleHierarchyVoter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ public function __construct(RoleHierarchyInterface $roleHierarchy, string $prefi
3131
parent::__construct($prefix);
3232
}
3333

34+
/**
35+
* @return array
36+
*/
3437
protected function extractRoles(TokenInterface $token)
3538
{
3639
return $this->roleHierarchy->getReachableRoleNames($token->getRoleNames());

Authorization/Voter/RoleVoter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ public function supportsType(string $subjectType): bool
5858
return true;
5959
}
6060

61+
/**
62+
* @return array
63+
*/
6164
protected function extractRoles(TokenInterface $token)
6265
{
6366
return $token->getRoleNames();

Event/AuthenticationEvent.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ public function __construct(TokenInterface $token)
2828
$this->authenticationToken = $token;
2929
}
3030

31+
/**
32+
* @return TokenInterface
33+
*/
3134
public function getAuthenticationToken()
3235
{
3336
return $this->authenticationToken;

0 commit comments

Comments
 (0)