Skip to content

Commit

Permalink
Merge branch '4.4' into 5.0
Browse files Browse the repository at this point in the history
* 4.4:
  Fix quotes in exception messages
  Fix quotes in exception messages
  Fix quotes in exception messages
  • Loading branch information
fabpot committed Mar 16, 2020
2 parents 27c8c57 + 235e5af commit d33fcd2
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 @@ -207,7 +207,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 @@ -175,7 +175,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(string $name, string $currentPath = null, bool $first = t
}

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 d33fcd2

Please sign in to comment.