DX: fix some phpstan issues and add test for ParticipationOverlapValidator.php

This commit is contained in:
2023-02-07 22:11:39 +01:00
parent 70871176fc
commit afd2235254
5 changed files with 118 additions and 4 deletions

View File

@@ -23,6 +23,8 @@ use function in_array;
/**
* Lazy load third parties.
*
* @deprecated As the PickThirdPartyType is deprecated, this should not be in use
*/
class ThirdPartyChoiceLoader implements ChoiceLoaderInterface
{
@@ -57,7 +59,7 @@ class ThirdPartyChoiceLoader implements ChoiceLoaderInterface
$choices = [];
foreach ($values as $value) {
if (empty($value)) {
if (null === $value || '' === $value) {
continue;
}