DX: fix phpstan errors

This commit is contained in:
2023-02-07 22:34:37 +01:00
parent e5c183aa44
commit fa481fd795
3 changed files with 55 additions and 28 deletions

View File

@@ -59,10 +59,6 @@ class ThirdPartyChoiceLoader implements ChoiceLoaderInterface
$choices = [];
foreach ($values as $value) {
if (null === $value || '' === $value) {
continue;
}
$party = $this->partyRepository->find($value);
if (false === in_array($this->center, $party->getCenters()->toArray(), true)) {