fix: Strict types interfaces: VoterHelperInterface, ProvideRoleHierarchyInterface and ProvideRoleInterface.

This commit is contained in:
Pol Dellaiera
2021-11-23 10:40:34 +01:00
parent 05dda33a7a
commit 328b4c4596
21 changed files with 187 additions and 255 deletions

View File

@@ -31,7 +31,7 @@ use Symfony\Component\Security\Core\Role\Role;
use Psr\Log\LoggerInterface;
/**
*
*
*
* @author Julien Fastré <julien.fastre@champs-libres.coop>
*/
@@ -127,19 +127,19 @@ class ParticipationVoter extends AbstractChillVoter implements ProvideRoleHierar
}
public function getRoles()
public function getRoles(): array
{
return self::ROLES;
}
public function getRolesWithHierarchy()
public function getRolesWithHierarchy(): array
{
return [
'Event' => self::ROLES
];
}
public function getRolesWithoutScope()
public function getRolesWithoutScope(): array
{
return [];
}