Skip to content

Commit 41cd6cb

Browse files
committed
Add missing dots at the end of exception messages
1 parent f5e4847 commit 41cd6cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Controller/AbstractController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function setContainer(ContainerInterface $container): ?ContainerInterface
6565
protected function getParameter(string $name)
6666
{
6767
if (!$this->container->has('parameter_bag')) {
68-
throw new ServiceNotFoundException('parameter_bag', null, null, [], sprintf('The "%s::getParameter()" method is missing a parameter bag to work properly. Did you forget to register your controller as a service subscriber? This can be fixed either by using autoconfiguration or by manually wiring a "parameter_bag" in the service locator passed to the controller.', static::class));
68+
throw new ServiceNotFoundException('parameter_bag.', null, null, [], sprintf('The "%s::getParameter()" method is missing a parameter bag to work properly. Did you forget to register your controller as a service subscriber? This can be fixed either by using autoconfiguration or by manually wiring a "parameter_bag" in the service locator passed to the controller.', static::class));
6969
}
7070

7171
return $this->container->get('parameter_bag')->get($name);

EventListener/ResolveControllerNameSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function resolveControllerName(...$args)
4949
public function __call(string $method, array $args)
5050
{
5151
if ('onKernelRequest' !== $method && 'onKernelRequest' !== strtolower($method)) {
52-
throw new \Error(sprintf('Error: Call to undefined method %s::%s()', static::class, $method));
52+
throw new \Error(sprintf('Error: Call to undefined method %s::%s().', static::class, $method));
5353
}
5454

5555
$event = $args[0];

Secrets/SodiumVault.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function loadEnvVars(): array
177177
private function loadKeys(): void
178178
{
179179
if (!\function_exists('sodium_crypto_box_seal')) {
180-
throw new \LogicException('The "sodium" PHP extension is required to deal with secrets. Alternatively, try running "composer require paragonie/sodium_compat" if you cannot enable the extension."');
180+
throw new \LogicException('The "sodium" PHP extension is required to deal with secrets. Alternatively, try running "composer require paragonie/sodium_compat" if you cannot enable the extension.".');
181181
}
182182

183183
if (null !== $this->encryptionKey || '' !== $this->decryptionKey = (string) $this->decryptionKey) {
@@ -214,7 +214,7 @@ private function export(string $file, string $data): void
214214
private function createSecretsDir(): void
215215
{
216216
if ($this->secretsDir && !is_dir($this->secretsDir) && !@mkdir($this->secretsDir, 0777, true) && !is_dir($this->secretsDir)) {
217-
throw new \RuntimeException(sprintf('Unable to create the secrets directory (%s)', $this->secretsDir));
217+
throw new \RuntimeException(sprintf('Unable to create the secrets directory (%s).', $this->secretsDir));
218218
}
219219

220220
$this->secretsDir = null;

0 commit comments

Comments
 (0)