Skip to content

Commit

Permalink
Add missing dots at the end of exception messages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 15, 2020
1 parent e15f2c1 commit 8fc7fe6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function __construct(string $trueValue, array $falseValues = [null])
$this->trueValue = $trueValue;
$this->falseValues = $falseValues;
if (\in_array($this->trueValue, $this->falseValues, true)) {
throw new InvalidArgumentException('The specified "true" value is contained in the false-values');
throw new InvalidArgumentException('The specified "true" value is contained in the false-values.');
}
}

Expand Down
2 changes: 1 addition & 1 deletion ResolvedFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function createBuilder(FormFactoryInterface $factory, $name, array $optio
try {
$options = $this->getOptionsResolver()->resolve($options);
} catch (ExceptionInterface $e) {
throw new $e(sprintf('An error has occurred resolving the options of the form "%s": %s', \get_class($this->getInnerType()), $e->getMessage()), $e->getCode(), $e);
throw new $e(sprintf('An error has occurred resolving the options of the form "%s": %s.', \get_class($this->getInnerType()), $e->getMessage()), $e->getCode(), $e);
}

// Should be decoupled from the specific option at some point
Expand Down

0 comments on commit 8fc7fe6

Please sign in to comment.