8000 Trim constant values in XmlFileLoader · src-run/symfony@f09e621 · GitHub
[go: up one dir, main page]

Skip to content

Commit f09e621

Browse files
lstrojnyfabpot
authored andcommitted
Trim constant values in XmlFileLoader
1 parent 8974d77 commit f09e621

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ private function getArgumentsAsPhp(\DOMElement $node, $name, $lowercase = true)
391391
$arguments[$key] = $arg->nodeValue;
392392
break;
393393
case 'constant':
394-
$arguments[$key] = constant($arg->nodeValue);
394+
$arguments[$key] = constant(trim($arg->nodeValue));
395395
break;
396396
default:
397397
$arguments[$key] = XmlUtils::phpize($arg->nodeValue);

0 commit comments

Comments
 (0)
0