mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
Merge branch 'tests/fixes-2022-09-05' into 111_exports_suite
This commit is contained in:
@@ -33,7 +33,6 @@ use Exception;
|
||||
use LogicException;
|
||||
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\Security\Core\Role\Role;
|
||||
use Symfony\Component\Validator\Constraints\Callback;
|
||||
use Symfony\Component\Validator\Context\ExecutionContextInterface;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
@@ -458,9 +457,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()
|
||||
|
@@ -18,7 +18,7 @@ use Doctrine\ORM\Query\Expr;
|
||||
|
||||
class ReportDateFilter implements FilterInterface
|
||||
{
|
||||
public function addRole()
|
||||
public function addRole(): ?string
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user