Skip to content

Commit a29eb60

Browse files
committed
Add missing dots at the end of exception messages
1 parent d66eb93 commit a29eb60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

EnvVarProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ public function getEnv($prefix, $name, \Closure $getEnv)
241241
$parsedEnv = parse_url($env);
242242

243243
if (false === $parsedEnv) {
244-
throw new RuntimeException(sprintf('Invalid URL in env var "%s"', $name));
244+
throw new RuntimeException(sprintf('Invalid URL in env var "%s".', $name));
245245
}
246246
if (!isset($parsedEnv['scheme'], $parsedEnv['host'])) {
247247
throw new RuntimeException(sprintf('Invalid URL env var "%s": schema and host expected, %s given.', $name, $env));

Loader/YamlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ protected function loadFile($file)
690690
try {
691691
$configuration = $this->yamlParser->parseFile($file, Yaml::PARSE_CONSTANT | Yaml::PARSE_CUSTOM_TAGS);
692692
} catch (ParseException $e) {
693-
throw new InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML: %s', $file, $e->getMessage()), 0, $e);
693+
throw new InvalidArgumentException(sprintf('The file "%s" does not contain valid YAML: %s.', $file, $e->getMessage()), 0, $e);
694694
}
695695

696696
return $this->validate($configuration, $file);

0 commit comments

Comments
 (0)