remove unneeded cast

This commit is contained in:
Tobias Schultze 2012-12-02 18:47:28 +01:00
parent 358e9c47b9
commit 51fbffec26

View File

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