Skip to content

Commit ce180b8

Browse files
committed
Fix more quotes in exception messages
1 parent 0dc0d7a commit ce180b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Store/MemcachedStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function __construct(\Memcached $memcached, $initialTtl = 300)
4646
}
4747

4848
if ($initialTtl < 1) {
49-
throw new InvalidArgumentException(sprintf('%s() expects a strictly positive TTL. Got %d.', __METHOD__, $initialTtl));
49+
throw new InvalidArgumentException(sprintf('"%s()" expects a strictly positive TTL. Got %d.', __METHOD__, $initialTtl));
5050
}
5151

5252
$this->memcached = $memcached;
@@ -79,7 +79,7 @@ public function waitAndSave(Key $key)
7979
public function putOffExpiration(Key $key, $ttl)
8080
{
8181
if ($ttl < 1) {
82-
throw new InvalidArgumentException(sprintf('%s() expects a TTL greater or equals to 1. Got %s.', __METHOD__, $ttl));
82+
throw new InvalidArgumentException(sprintf('"%s()" expects a TTL greater or equals to 1. Got %s.', __METHOD__, $ttl));
8383
}
8484

8585
// Interface defines a float value but Store required an integer.

Store/RedisStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
/**

0 commit comments

Comments
 (0)