Skip to content

Commit

Permalink
Merge branch '3.4' into 4.4
Browse files Browse the repository at this point in the history
* 3.4:
  Fix quotes in exception messages
  • Loading branch information
fabpot committed Mar 16, 2020
2 parents 01887e8 + 13f9b08 commit 2d4d118
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HeaderBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ public function getDate($key, \DateTime $default = null)
}

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

return $date;
Expand Down
2 changes: 1 addition & 1 deletion Session/Storage/MockArraySessionStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function registerBag(SessionBagInterface $bag)
public function getBag($name)
{
if (!isset($this->bags[$name])) {
throw new \InvalidArgumentException(sprintf('The SessionBagInterface %s is not registered.', $name));
throw new \InvalidArgumentException(sprintf('The SessionBagInterface "%s" is not registered.', $name));
}

if (!$this->started) {
Expand Down
2 changes: 1 addition & 1 deletion Session/Storage/NativeSessionStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ public function registerBag(SessionBagInterface $bag)
public function getBag($name)
{
if (!isset($this->bags[$name])) {
throw new \InvalidArgumentException(sprintf('The SessionBagInterface %s is not registered.', $name));
throw new \InvalidArgumentException(sprintf('The SessionBagInterface "%s" is not registered.', $name));
}

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

0 comments on commit 2d4d118

Please sign in to comment.