Skip to content

Commit d30b50e

Browse files
committed
Add missing dots at the end of exception messages
1 parent 81718ad commit d30b50e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Data/Generator/LocaleDataGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private function generateLocaleName(BundleEntryReaderInterface $reader, string $
165165
// i.e. in de_AT, "AT" is the region
166166
if ($region = \Locale::getRegion($locale)) {
167167
if (ctype_alpha($region) && !RegionDataGenerator::isValidCountryCode($region)) {
168-
throw new MissingResourceException('Skipping "'.$locale.'" due an invalid country.');
168+
throw new MissingResourceException(sprintf('Skipping "%s" due an invalid country.', $locale));
169169
}
170170

171171
$extras[] = str_replace(['(', ')'], ['[', ']'], $reader->readEntry($tempDir.'/region', $displayLocale, ['Countries', $region]));

0 commit comments

Comments
 (0)