Skip to content

Commit eb80a94

Browse files
committed
Fix quotes in exception messages
1 parent 9e4ed67 commit eb80a94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CacheClearer/Psr6CacheClearer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function hasPool($name)
3131
public function getPool($name)
3232
{
3333
if (!$this->hasPool($name)) {
34-
throw new \InvalidArgumentException(sprintf('Cache pool not found: %s.', $name));
34+
throw new \InvalidArgumentException(sprintf('Cache pool not found: "%s".', $name));
3535
}
3636

3737
return $this->pools[$name];

EventListener/TranslatorListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class TranslatorListener implements EventSubscriberInterface
4040
public function __construct($translator, RequestStack $requestStack)
4141
{
4242
if (!$translator instanceof TranslatorInterface && !$translator instanceof LocaleAwareInterface) {
43-
throw new \TypeError(sprintf('Argument 1 passed to %s() must be an instance of %s, %s given.', __METHOD__, LocaleAwareInterface::class, \is_object($translator) ? \get_class($translator) : \gettype($translator)));
43+
throw new \TypeError(sprintf('Argument 1 passed to "%s()" must be an instance of "%s", "%s" given.', __METHOD__, LocaleAwareInterface::class, \is_object($translator) ? \get_class($translator) : \gettype($translator)));
4444
}
4545
$this->translator = $translator;
4646
$this->requestStack = $requestStack;

0 commit comments

Comments
 (0)