Skip to content

Commit b234f66

Browse files
committed
Fix quotes in exception messages
1 parent ae5d89e commit b234f66

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Store/StoreFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class StoreFactory
3333
public static function createStore($connection)
3434
{
3535
if (!\is_string($connection) && !\is_object($connection)) {
36-
throw new \TypeError(sprintf('Argument 1 passed to %s() must be a string or a connection object, %s given.', __METHOD__, \gettype($connection)));
36+
throw new \TypeError(sprintf('Argument 1 passed to "%s()" must be a string or a connection object, "%s" given.', __METHOD__, \gettype($connection)));
3737
}
3838

3939
switch (true) {
@@ -56,7 +56,7 @@ public static function createStore($connection)
5656
return new ZookeeperStore($connection);
5757

5858
case !\is_string($connection):
59-
throw new InvalidArgumentException(sprintf('Unsupported Connection: %s.', \get_class($connection)));
59+
throw new InvalidArgumentException(sprintf('Unsupported Connection: "%s".', \get_class($connection)));
6060
case 'flock' === $connection:
6161
return new FlockStore();
6262

Store/ZookeeperStore.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ public function __construct(\Zookeeper $zookeeper)
3838
public static function createConnection(string $dsn): \Zookeeper
3939
{
4040
if (0 !== strpos($dsn, 'zookeeper:')) {
41-
throw new InvalidArgumentException(sprintf('Unsupported DSN: %s.', $dsn));
41+
throw new InvalidArgumentException(sprintf('Unsupported DSN: "%s".', $dsn));
4242
}
4343

4444
if (false === $params = parse_url($dsn)) {
45-
throw new InvalidArgumentException(sprintf('Invalid Zookeeper DSN: %s.', $dsn));
45+
throw new InvalidArgumentException(sprintf('Invalid Zookeeper DSN: "%s".', $dsn));
4646
}
4747

4848
$host = $params['host'] ?? '';

0 commit comments

Comments
 (0)