Skip to content

Commit 4adae54

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [TwigBundle] fixed usage of getSource in tests Trim constant values in XmlFileLoader move test to the HttpKernel component [TwigBridge] fixed Twig_Source required argument
2 parents 4c8cff7 + d1b906b commit 4adae54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ private function getArgumentsAsPhp(\DOMElement $node, $name, $lowercase = true)
414414
$arguments[$key] = $arg->nodeValue;
415415
break;
416416
case 'constant':
417-
$arguments[$key] = constant($arg->nodeValue);
417+
$arguments[$key] = constant(trim($arg->nodeValue));
418418
break;
419419
default:
420420
$arguments[$key] = XmlUtils::phpize($arg->nodeValue);

0 commit comments

Comments
 (0)