From fc5be36e0659ab6e58cc069e8845f0819e6d086e Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 16 Mar 2020 08:32:23 +0100 Subject: [PATCH] Fix quotes in exception messages --- Definition/ArrayNode.php | 2 +- Definition/PrototypedArrayNode.php | 2 +- FileLocator.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Definition/ArrayNode.php b/Definition/ArrayNode.php index 18990a2e3..83bab205e 100644 --- a/Definition/ArrayNode.php +++ b/Definition/ArrayNode.php @@ -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) { diff --git a/Definition/PrototypedArrayNode.php b/Definition/PrototypedArrayNode.php index d36b9a440..d18a109ab 100644 --- a/Definition/PrototypedArrayNode.php +++ b/Definition/PrototypedArrayNode.php @@ -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) { diff --git a/FileLocator.php b/FileLocator.php index 1314cc348..c125ba0b1 100644 --- a/FileLocator.php +++ b/FileLocator.php @@ -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;