Permalink
Browse files

remove unneeded cast

  • Loading branch information...
1 parent 358e9c4 commit 51fbffec2604d53e6220cba3fbea4eea7fa858c2 @Tobion Tobion committed Dec 2, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Symfony/Component/Routing/Loader/XmlFileLoader.php
@@ -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));

0 comments on commit 51fbffe

Please sign in to comment.