Skip to content

Commit e74d9ad

Browse files
committed
Add missing dots at the end of exception messages
1 parent c8fe2c2 commit e74d9ad

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Store/MemcachedStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public static function isSupported()
4242
public function __construct(\Memcached $memcached, $initialTtl = 300)
4343
{
4444
if (!static::isSupported()) {
45-
throw new InvalidArgumentException('Memcached extension is required');
45+
throw new InvalidArgumentException('Memcached extension is required.');
4646
}
4747

4848
if ($initialTtl < 1) {

Store/RedisStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class RedisStore implements StoreInterface
3737
public function __construct($redisClient, $initialTtl = 300.0)
3838
{
3939
if (!$redisClient instanceof \Redis && !$redisClient instanceof \RedisArray && !$redisClient instanceof \RedisCluster && !$redisClient instanceof \Predis\ClientInterface && !$redisClient instanceof RedisProxy) {
40-
throw new InvalidArgumentException(sprintf('%s() expects parameter 1 to be Redis, RedisArray, RedisCluster or Predis\ClientInterface, %s given', __METHOD__, \is_object($redisClient) ? \get_class($redisClient) : \gettype($redisClient)));
40+
throw new InvalidArgumentException(sprintf('%s() expects parameter 1 to be Redis, RedisArray, RedisCluster or Predis\ClientInterface, %s given.', __METHOD__, \is_object($redisClient) ? \get_class($redisClient) : \gettype($redisClient)));
4141
}
4242

4343
if ($initialTtl <= 0) {
@@ -143,7 +143,7 @@ private function evaluate($script, $resource, array $args)
143143
return \call_user_func_array([$this->redis, 'eval'], array_merge([$script, 1, $resource], $args));
144144
}
145145

146-
throw new InvalidArgumentException(sprintf('%s() expects being initialized with a Redis, RedisArray, RedisCluster or Predis\ClientInterface, %s given', __METHOD__, \is_object($this->redis) ? \get_class($this->redis) : \gettype($this->redis)));
146+
throw new InvalidArgumentException(sprintf('%s() expects being initialized with a Redis, RedisArray, RedisCluster or Predis\ClientInterface, %s given.', __METHOD__, \is_object($this->redis) ? \get_class($this->redis) : \gettype($this->redis)));
147147
}
148148

149149
/**

Store/SemaphoreStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function isSupported($blocking = null)
4949
public function __construct()
5050
{
5151
if (!static::isSupported()) {
52-
throw new InvalidArgumentException('Semaphore extension (sysvsem) is required');
52+
throw new InvalidArgumentException('Semaphore extension (sysvsem) is required.');
5353
}
5454
}
5555

0 commit comments

Comments
 (0)