This commit is contained in:
Fabien Potencier 2018-09-04 18:54:09 +02:00
parent 78ecaf381d
commit b5d4eafa54

View File

@ -29,7 +29,7 @@ use Symfony\Component\Lock\StoreInterface;
* CAUTION: This store relies on all client and server nodes to have
* synchronized clocks for lock expiry to occur at the correct time.
* To ensure locks don't expire prematurely; the ttl's should be set with enough
* To ensure locks don't expire prematurely; the TTLs should be set with enough
* extra time to account for any clock drift between nodes.
*
* @author Jérémy Derussé <jeremy@derusse.com>
@ -79,7 +79,7 @@ class PdoStore implements StoreInterface
throw new InvalidArgumentException(sprintf('"%s" requires gcProbability between 0 and 1, "%f" given.', __METHOD__, $gcProbability));
}
if ($initialTtl < 1) {
throw new InvalidArgumentException(sprintf('%s() expects a strictly positive TTL. Got %d.', __METHOD__, $initialTtl));
throw new InvalidArgumentException(sprintf('%s() expects a strictly positive TTL, "%d" given.', __METHOD__, $initialTtl));
}
if ($connOrDsn instanceof \PDO) {
@ -210,7 +210,7 @@ class PdoStore implements StoreInterface
}
/**
* Returns an hashed version of the key.
* Returns a hashed version of the key.
*/
private function getHashedKey(Key $key): string
{