fix errors with Role type

This commit is contained in:
2022-09-07 11:09:03 +02:00
parent 1b8b99d5ce
commit d9e602247e
3 changed files with 5 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ final class GeographicalUnitStatAggregator implements AggregatorInterface
/**
* @inheritDoc
*/
public function addRole()
public function addRole(): ?string
{
return null;
}

View File

@@ -142,9 +142,9 @@ class ListPersonDuplicate implements DirectExportInterface, ExportElementValidat
return 'List duplicates';
}
public function requiredRole(): Role
public function requiredRole(): string
{
return new Role(PersonVoter::DUPLICATE);
return PersonVoter::DUPLICATE;
}
public function validateForm($data, ExecutionContextInterface $context)