Trim constant values in XmlFileLoader

This commit is contained in:
Lars Strojny 2016-10-19 20:16:43 +02:00 committed by Fabien Potencier
parent 8974d773a7
commit f09e6218f8

View File

@ -391,7 +391,7 @@ class XmlFileLoader extends FileLoader
$arguments[$key] = $arg->nodeValue;
break;
case 'constant':
$arguments[$key] = constant($arg->nodeValue);
$arguments[$key] = constant(trim($arg->nodeValue));
break;
default:
$arguments[$key] = XmlUtils::phpize($arg->nodeValue);