Form/ChoiceLoader/LdapObjectChoiceLoader.php
public function loadValuesForChoices(array $choices, $value = null)
    {
        if (empty(array_filter($choices))) {
            return [];
        }
        if (!$this->choiceList) {
            return $this->getLdapValuesForChoices(...$choices);
        }

        return $this->loadChoiceList($value)->getValuesForChoices($choices);
    }
public function loadValuesForChoices(array $choices, $value = null)
    {
        if (empty(array_filter($choices))) {
            return [];
        }
        if (!$this->choiceList) {
            return $this->getLdapValuesForChoices(...$choices);
        }

        return $this->loadChoiceList($value)->getValuesForChoices($choices);
    }
{@inheritdoc}