Skip to content

Commit c75fa64

Browse files
committed
Fix more quotes in exception messages
1 parent d08a242 commit c75fa64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Store/PdoStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function __construct($connOrDsn, array $options = [], float $gcProbabilit
8282
throw new InvalidArgumentException(sprintf('"%s" requires gcProbability between 0 and 1, "%f" given.', __METHOD__, $gcProbability));
8383
}
8484
if ($initialTtl < 1) {
85-
throw new InvalidTtlException(sprintf('%s() expects a strictly positive TTL, "%d" given.', __METHOD__, $initialTtl));
85+
throw new InvalidTtlException(sprintf('"%s()" expects a strictly positive TTL, "%d" given.', __METHOD__, $initialTtl));
8686
}
8787

8888
if ($connOrDsn instanceof \PDO) {
@@ -156,7 +156,7 @@ public function waitAndSave(Key $key)
156156
public function putOffExpiration(Key $key, $ttl)
157157
{
158158
if ($ttl < 1) {
159-
throw new InvalidTtlException(sprintf('%s() expects a TTL greater or equals to 1 second. Got %s.', __METHOD__, $ttl));
159+
throw new InvalidTtlException(sprintf('"%s()" expects a TTL greater or equals to 1 second. Got %s.', __METHOD__, $ttl));
160160
}
161161

162162
$key->reduceLifetime($ttl);

0 commit comments

Comments
 (0)