Skip to content

Commit 305196e

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Add missing dots at the end of exception messages
2 parents de41204 + e74d9ad commit 305196e

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
@@ -43,7 +43,7 @@ public static function isSupported()
4343
public function __construct(\Memcached $memcached, int $initialTtl = 300)
4444
{
4545
if (!static::isSupported()) {
46-
throw new InvalidArgumentException('Memcached extension is required');
46+
throw new InvalidArgumentException('Memcached extension is required.');
4747
}
4848

4949
if ($initialTtl < 1) {

Store/RedisStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class RedisStore implements StoreInterface
3939
public function __construct($redisClient, float $initialTtl = 300.0)
4040
{
4141
if (!$redisClient instanceof \Redis && !$redisClient instanceof \RedisArray && !$redisClient instanceof \RedisCluster && !$redisClient instanceof \Predis\ClientInterface && !$redisClient instanceof RedisProxy) {
42-
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)));
42+
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)));
4343
}
4444

4545
if ($initialTtl <= 0) {
@@ -153,7 +153,7 @@ private function evaluate(string $script, string $resource, array $args)
153153
return $this->redis->eval(...array_merge([$script, 1, $resource], $args));
154154
}
155155

156-
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)));
156+
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)));
157157
}
158158

159159
private function getUniqueToken(Key $key): string

Store/SemaphoreStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public static function isSupported(): bool
3737
public function __construct()
3838
{
3939
if (!static::isSupported()) {
40-
throw new InvalidArgumentException('Semaphore extension (sysvsem) is required');
40+
throw new InvalidArgumentException('Semaphore extension (sysvsem) is required.');
4141
}
4242
}
4343

0 commit comments

Comments
 (0)