Skip to content

Commit 01887e8

Browse files
committed
Add missing dots at the end of exception messages
1 parent 85f59e7 commit 01887e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ public function getSession()
725725

726726
if (null === $session) {
727727
@trigger_error(sprintf('Calling "%s()" when no session has been set is deprecated since Symfony 4.1 and will throw an exception in 5.0. Use "hasSession()" instead.', __METHOD__), E_USER_DEPRECATED);
728-
// throw new \BadMethodCallException('Session has not been set');
728+
// throw new \BadMethodCallException('Session has not been set.');
729729
}
730730

731731
return $session;

Session/Storage/Handler/RedisSessionHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ public function __construct($redis, array $options = [])
5454
!$redis instanceof RedisProxy &&
5555
!$redis instanceof RedisClusterProxy
5656
) {
57-
throw new \InvalidArgumentException(sprintf('%s() expects parameter 1 to be Redis, RedisArray, RedisCluster or Predis\ClientInterface, %s given', __METHOD__, \is_object($redis) ? \get_class($redis) : \gettype($redis)));
57+
throw new \InvalidArgumentException(sprintf('%s() expects parameter 1 to be Redis, RedisArray, RedisCluster or Predis\ClientInterface, %s given.', __METHOD__, \is_object($redis) ? \get_class($redis) : \gettype($redis)));
5858
}
5959

6060
if ($diff = array_diff(array_keys($options), ['prefix', 'ttl'])) {
61-
throw new \InvalidArgumentException(sprintf('The following options are not supported "%s"', implode(', ', $diff)));
61+
throw new \InvalidArgumentException(sprintf('The following options are not supported "%s".', implode(', ', $diff)));
6262
}
6363

6464
$this->redis = $redis;

0 commit comments

Comments
 (0)