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; $arguments[$key] = $arg->nodeValue;
break; break;
case 'constant': case 'constant':
$arguments[$key] = constant($arg->nodeValue); $arguments[$key] = constant(trim($arg->nodeValue));
break; break;
default: default:
$arguments[$key] = XmlUtils::phpize($arg->nodeValue); $arguments[$key] = XmlUtils::phpize($arg->nodeValue);