$dataListAttributes An array of HTML attributes applied to the datalist element */ public function __invoke(?string $locale = null, array $dataListAttributes = []): string { $locale = $locale ?? $this->defaultLocale; $list = array_map(function (CountryCode $code) use ($locale): string { $name = Locale::getDisplayRegion('-' . $code->toString(), $locale); return sprintf( '