Skip to content

Commit

Permalink
remove unneeded cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Dec 11, 2012
1 parent 358e9c4 commit 51fbffe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Symfony/Component/Routing/Loader/XmlFileLoader.php
Expand Up @@ -155,13 +155,13 @@ protected function parseRoute(RouteCollection $collection, \DOMElement $definiti

switch ($node->tagName) {
case 'default':
$defaults[$node->getAttribute('key')] = trim((string) $node->nodeValue);
$defaults[$node->getAttribute('key')] = trim($node->nodeValue);
break;
case 'option':
$options[$node->getAttribute('key')] = trim((string) $node->nodeValue);
$options[$node->getAttribute('key')] = trim($node->nodeValue);
break;
case 'requirement':
$requirements[$node->getAttribute('key')] = trim((string) $node->nodeValue);
$requirements[$node->getAttribute('key')] = trim($node->nodeValue);
break;
default:
throw new \InvalidArgumentException(sprintf('Unable to parse tag "%s"', $node->tagName));
Expand Down

0 comments on commit 51fbffe

Please sign in to comment.