Skip to content

Commit 2d4d118

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: Fix quotes in exception messages
2 parents 01887e8 + 13f9b08 commit 2d4d118

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

HeaderBag.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function getDate($key, \DateTime $default = null)
219219
}
220220

221221
if (false === $date = \DateTime::createFromFormat(DATE_RFC2822, $value)) {
222-
throw new \RuntimeException(sprintf('The %s HTTP header is not parseable (%s).', $key, $value));
222+
throw new \RuntimeException(sprintf('The "%s" HTTP header is not parseable (%s).', $key, $value));
223223
}
224224

225225
return $date;

Session/Storage/MockArraySessionStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function registerBag(SessionBagInterface $bag)
186186
public function getBag($name)
187187
{
188188
if (!isset($this->bags[$name])) {
189-
throw new \InvalidArgumentException(sprintf('The SessionBagInterface %s is not registered.', $name));
189+
throw new \InvalidArgumentException(sprintf('The SessionBagInterface "%s" is not registered.', $name));
190190
}
191191

192192
if (!$this->started) {

Session/Storage/NativeSessionStorage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ public function registerBag(SessionBagInterface $bag)
311311
public function getBag($name)
312312
{
313313
if (!isset($this->bags[$name])) {
314-
throw new \InvalidArgumentException(sprintf('The SessionBagInterface %s is not registered.', $name));
314+
throw new \InvalidArgumentException(sprintf('The SessionBagInterface "%s" is not registered.', $name));
315315
}
316316

317317
if (!$this->started && $this->saveHandler->isActive()) {

0 commit comments

Comments
 (0)