remove usage of deprecated Role into Export

This commit is contained in:
2022-09-05 17:26:36 +02:00
parent c442529799
commit 75bdc335e5
125 changed files with 153 additions and 154 deletions

View File

@@ -458,9 +458,9 @@ class ReportList implements ExportElementValidatedInterface, ListInterface
->setParameter('authorized_centers', $centers);
}
public function requiredRole()
public function requiredRole(): string
{
return new Role(ReportVoter::LISTS);
return ReportVoter::LISTS;
}
public function supportsModifiers()

View File

@@ -18,7 +18,7 @@ use Doctrine\ORM\Query\Expr;
class ReportDateFilter implements FilterInterface
{
public function addRole()
public function addRole(): ?string
{
return null;
}