Skip to content

Commit a907483

Browse files
committed
Add missing dots at the end of exception messages
1 parent c6d9173 commit a907483

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

RoutableMessageBus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(ContainerInterface $busLocator, MessageBusInterface
3737
public function dispatch($envelope, array $stamps = []): Envelope
3838
{
3939
if (!$envelope instanceof Envelope) {
40-
throw new InvalidArgumentException('Messages passed to RoutableMessageBus::dispatch() must be inside an Envelope');
40+
throw new InvalidArgumentException('Messages passed to RoutableMessageBus::dispatch() must be inside an Envelope.');
4141
}
4242

4343
/** @var BusNameStamp|null $busNameStamp */

Transport/AmqpExt/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public function channel(): \AMQPChannel
384384
$credentials['password'] = '********';
385385
unset($credentials['delay']);
386386

387-
throw new \AMQPException(sprintf('Could not connect to the AMQP server. Please verify the provided DSN. (%s)', json_encode($credentials)), 0, $e);
387+
throw new \AMQPException(sprintf('Could not connect to the AMQP server. Please verify the provided DSN. (%s).', json_encode($credentials)), 0, $e);
388388
}
389389
$this->amqpChannel = $this->amqpFactory->createChannel($connection);
390390

Transport/Doctrine/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ public static function buildConfiguration(string $dsn, array $options = []): arr
9292
// check for extra keys in options
9393
$optionsExtraKeys = array_diff(array_keys($options), array_keys(self::DEFAULT_OPTIONS));
9494
if (0 < \count($optionsExtraKeys)) {
95-
throw new InvalidArgumentException(sprintf('Unknown option found : [%s]. Allowed options are [%s]', implode(', ', $optionsExtraKeys), implode(', ', array_keys(self::DEFAULT_OPTIONS))));
95+
throw new InvalidArgumentException(sprintf('Unknown option found : [%s]. Allowed options are [%s].', implode(', ', $optionsExtraKeys), implode(', ', array_keys(self::DEFAULT_OPTIONS))));
9696
}
9797

9898
// check for extra keys in options
9999
$queryExtraKeys = array_diff(array_keys($query), array_keys(self::DEFAULT_OPTIONS));
100100
if (0 < \count($queryExtraKeys)) {
101-
throw new InvalidArgumentException(sprintf('Unknown option found in DSN: [%s]. Allowed options are [%s]', implode(', ', $queryExtraKeys), implode(', ', array_keys(self::DEFAULT_OPTIONS))));
101+
throw new InvalidArgumentException(sprintf('Unknown option found in DSN: [%s]. Allowed options are [%s].', implode(', ', $queryExtraKeys), implode(', ', array_keys(self::DEFAULT_OPTIONS))));
102102
}
103103

104104
return $configuration;

Transport/RedisExt/Connection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ public function __construct(array $configuration, array $connectionCredentials =
5656
$this->connection->setOption(\Redis::OPT_SERIALIZER, $redisOptions['serializer'] ?? \Redis::SERIALIZER_PHP);
5757

5858
if (isset($connectionCredentials['auth']) && !$this->connection->auth($connectionCredentials['auth'])) {
59-
throw new InvalidArgumentException(sprintf('Redis connection failed: %s', $redis->getLastError()));
59+
throw new InvalidArgumentException(sprintf('Redis connection failed: %s.', $redis->getLastError()));
6060
}
6161

6262
if (($dbIndex = $configuration['dbindex'] ?? self::DEFAULT_OPTIONS['dbindex']) && !$this->connection->select($dbIndex)) {
63-
throw new InvalidArgumentException(sprintf('Redis connection failed: %s', $redis->getLastError()));
63+
throw new InvalidArgumentException(sprintf('Redis connection failed: %s.', $redis->getLastError()));
6464
}
6565

6666
$this->stream = $configuration['stream'] ?? self::DEFAULT_OPTIONS['stream'];

0 commit comments

Comments
 (0)