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 96fb0ca + fc5be36 commit 0c8d87a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Definition/ArrayNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ public function addChild(NodeInterface $node)
protected function finalizeValue($value)
{
if (false === $value) {
throw new UnsetKeyException(sprintf('Unsetting key for path "%s", value: %s.', $this->getPath(), json_encode($value)));
throw new UnsetKeyException(sprintf('Unsetting key for path "%s", value: "%s".', $this->getPath(), json_encode($value)));
}

foreach ($this->children as $name => $child) {
Expand Down
2 changes: 1 addition & 1 deletion Definition/PrototypedArrayNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function addChild(NodeInterface $node)
protected function finalizeValue($value)
{
if (false === $value) {
throw new UnsetKeyException(sprintf('Unsetting key for path "%s", value: %s.', $this->getPath(), json_encode($value)));
throw new UnsetKeyException(sprintf('Unsetting key for path "%s", value: "%s".', $this->getPath(), json_encode($value)));
}

foreach ($value as $k => $v) {
Expand Down
2 changes: 1 addition & 1 deletion FileLocator.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function locate($name, $currentPath = null, $first = true)
}

if (!$filepaths) {
throw new FileLocatorFileNotFoundException(sprintf('The file "%s" does not exist (in: %s).', $name, implode(', ', $paths)), 0, null, $notfound);
throw new FileLocatorFileNotFoundException(sprintf('The file "%s" does not exist (in: "%s").', $name, implode('", "', $paths)), 0, null, $notfound);
}

return $filepaths;
Expand Down

0 comments on commit 0c8d87a

Please sign in to comment.