see https://github.com/symfony/symfony/pull/28624 ``` $supportedCountries = ['NL', 'FR', 'DE']; $builder->add('country', CountryType::class, [ 'choice_filter' => function ($countryName) use ($supportedCountries) { return in_array($countryName, $supportedCountries, true); }), ]); ```