DX: fix typing in SearchProvider

This commit is contained in:
2023-04-15 00:33:31 +02:00
parent 459b91001f
commit a9db133a7b
5 changed files with 7 additions and 55 deletions

View File

@@ -90,9 +90,7 @@ class CountPerson implements ExportInterface
public function initiateQuery(array $requiredModifiers, array $acl, array $data = [])
{
// we gather all center the user choose.
$centers = array_map(static function ($el) {
return $el['center'];
}, $acl);
$centers = array_map(static fn($el) => $el['center'], $acl);
$qb = $this->entityManager->createQueryBuilder();