Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove unneeded cast

  • Loading branch information...
commit 51fbffec2604d53e6220cba3fbea4eea7fa858c2 1 parent 358e9c4
@Tobion Tobion authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Symfony/Component/Routing/Loader/XmlFileLoader.php
View
6 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));
Please sign in to comment.
Something went wrong with that request. Please try again.