From 235e5afffd3a1a1b0dd0221973cbf670bc3be1d4 Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 16 Mar 2020 11:25:47 +0100 Subject: [PATCH] Fix quotes in exception messages --- Definition/Builder/TreeBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Definition/Builder/TreeBuilder.php b/Definition/Builder/TreeBuilder.php index 83f2c5991..4298d444a 100644 --- a/Definition/Builder/TreeBuilder.php +++ b/Definition/Builder/TreeBuilder.php @@ -61,7 +61,7 @@ public function root($name, $type = 'array', NodeBuilder $builder = null) public function getRootNode(): NodeDefinition { if (null === $this->root) { - throw new \RuntimeException(sprintf('Calling %s() before creating the root node is not supported, migrate to the new constructor signature instead.', __METHOD__)); + throw new \RuntimeException(sprintf('Calling "%s()" before creating the root node is not supported, migrate to the new constructor signature instead.', __METHOD__)); } return $this->root;