Merge branch 'tests/fixes-2022-09-05' into 111_exports_suite

This commit is contained in:
2022-09-06 14:53:05 +02:00
164 changed files with 3838 additions and 4005 deletions

View File

@@ -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()

View File

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