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; }