From cbc2f9fd369be6d427fe0ce23d960d842203e92d Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Thu, 13 Mar 2014 06:07:25 +0100 Subject: [PATCH] [Config] made a condition more explicit --- src/Symfony/Component/Config/Util/XmlUtils.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Config/Util/XmlUtils.php b/src/Symfony/Component/Config/Util/XmlUtils.php index 494d7c3895..e7c0bf79d4 100644 --- a/src/Symfony/Component/Config/Util/XmlUtils.php +++ b/src/Symfony/Component/Config/Util/XmlUtils.php @@ -132,7 +132,7 @@ class XmlUtils $nodeValue = false; foreach ($element->childNodes as $node) { if ($node instanceof \DOMText) { - if (strlen(trim($node->nodeValue)) > 0) { + if ('' !== trim($node->nodeValue)) { $nodeValue = trim($node->nodeValue); $empty = false; }